generated from Persson-dev/Godot-Xmake
32 lines
540 B
C++
32 lines
540 B
C++
#pragma once
|
|
|
|
#include <godot_cpp/classes/node.hpp>
|
|
#include <blitz/common/Types.h>
|
|
|
|
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
|