generated from Persson-dev/Godot-Xmake
move files into client folder
This commit is contained in:
32
include/client/Server.h
Normal file
32
include/client/Server.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user