29 lines
567 B
C++
Executable File
29 lines
567 B
C++
Executable File
#ifndef GDGAME_H
|
|
#define GDGAME_H
|
|
|
|
#include <godot_cpp/classes/node2d.hpp>
|
|
|
|
#include "kyara.h"
|
|
#include <godot_cpp/classes/multiplayer_api.hpp>
|
|
#include <godot_cpp/classes/multiplayer_spawner.hpp>
|
|
#include <godot_cpp/classes/resource_loader.hpp>
|
|
|
|
namespace godot
|
|
{
|
|
class Game : public Node2D
|
|
{
|
|
GDCLASS(Game, Node2D)
|
|
private:
|
|
int multiplayer_type;
|
|
MultiplayerSpawner *spawn;
|
|
protected:
|
|
static void _bind_methods();
|
|
public:
|
|
Game();
|
|
~Game();
|
|
void start(const Dictionary &players, const int p_multiplayer_type);
|
|
Node* kyaraspawn(const Variant &data);
|
|
};
|
|
}
|
|
|
|
#endif |