moved server

This commit is contained in:
2024-08-19 15:26:23 +02:00
parent 27a3581af1
commit 3cebb70289
3 changed files with 2 additions and 2 deletions

View File

@@ -1,32 +0,0 @@
#pragma once
#include <blitz/common/Types.h>
#include <godot_cpp/classes/node.hpp>
namespace blitz {
class Lobby;
class NetworkInterface;
class Server : public godot::Node {
GDCLASS(Server, godot::Node)
protected:
static void _bind_methods();
public:
Server();
~Server();
void _ready() override;
void OnPlayerConnect(PeerID a_PeerId);
void OnPlayerDisconnect(PeerID a_PeerId);
private:
Lobby* m_Lobby;
NetworkInterface* m_NetworkInterface;
godot::TypedArray<PeerID> m_Peers;
};
} // namespace blitz