Files
Blitz3/include/server/ServerWorld.h
Persson-dev eb85b13ac7
All checks were successful
Linux arm64 / Build (pull_request) Successful in 1m35s
fixed client player going crazy on spawn
2024-08-22 10:25:01 +02:00

23 lines
452 B
C++

#include <blitz/godot/World.h>
namespace blitz {
class ServerWorld : public World {
GDCLASS(ServerWorld, World)
protected:
static void _bind_methods();
public:
ServerWorld();
~ServerWorld();
void _process(float delta);
void HandlePacket(const protocol::packets::PlayerPositionAndRotation&) override;
void SyncPlayersPos();
protected:
virtual void AddPlayer(PlayerID a_PlayerId, godot::String a_PlayerName);
};
} // namespace blitz