mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 11:38:19 +00:00
23 lines
506 B
C++
23 lines
506 B
C++
|
#ifndef GAME_CLIENT_GAMESYSTEM_H
|
||
|
#define GAME_CLIENT_GAMESYSTEM_H
|
||
|
|
||
|
#include <engine/e_client_interface.h>
|
||
|
|
||
|
class GAMECLIENT;
|
||
|
|
||
|
class COMPONENT
|
||
|
{
|
||
|
public:
|
||
|
GAMECLIENT *client;
|
||
|
|
||
|
virtual void on_statechange(int new_state, int old_state) {};
|
||
|
virtual void on_init() {};
|
||
|
virtual void on_reset() {};
|
||
|
virtual void on_render() {};
|
||
|
virtual void on_message(int msg, void *rawmsg) {}
|
||
|
virtual bool on_mousemove(float x, float y) { return false; }
|
||
|
virtual bool on_input(INPUT_EVENT e) { return false; }
|
||
|
};
|
||
|
|
||
|
#endif
|