move files into client folder

This commit is contained in:
2024-08-19 14:37:36 +02:00
parent 472f66d184
commit 99ff2c4ac3
18 changed files with 29 additions and 42 deletions

32
include/client/Lobby.h Normal file
View File

@@ -0,0 +1,32 @@
#pragma once
#include <godot_cpp/classes/node.hpp>
#include <client/NetworkInterface.h>
namespace blitz {
class Lobby : public godot::Node {
GDCLASS(Lobby, godot::Node)
protected:
static void _bind_methods();
public:
Lobby();
~Lobby();
void _ready() override;
godot::Error JoinGame(const godot::String& a_Address, uint16_t a_Port);
godot::Error CreateGame(uint16_t a_Port, bool a_Dedicated = false);
void Shutdown();
private:
void OnPlayerConnected(PeerID a_PeerId);
void OnPlayerDisconnected(PeerID a_PeerId);
void OnConnectOk();
void OnConnectFail();
void OnServerDisconnected();
};
} // namespace blitz