2008-08-27 15:48:50 +00:00
|
|
|
#ifndef GAME_CLIENT_GAMESYSTEM_H
|
|
|
|
#define GAME_CLIENT_GAMESYSTEM_H
|
|
|
|
|
|
|
|
#include <engine/e_client_interface.h>
|
|
|
|
|
|
|
|
class GAMECLIENT;
|
|
|
|
|
|
|
|
class COMPONENT
|
|
|
|
{
|
2008-08-30 09:16:29 +00:00
|
|
|
protected:
|
|
|
|
GAMECLIENT *client;
|
2008-08-27 15:48:50 +00:00
|
|
|
public:
|
2008-08-27 15:53:52 +00:00
|
|
|
~COMPONENT() {}
|
2008-08-27 15:48:50 +00:00
|
|
|
|
|
|
|
virtual void on_statechange(int new_state, int old_state) {};
|
2008-09-04 21:36:44 +00:00
|
|
|
virtual void on_console_init() {};
|
2008-08-27 15:48:50 +00:00
|
|
|
virtual void on_init() {};
|
2008-09-04 21:36:44 +00:00
|
|
|
virtual void on_save() {};
|
2008-08-27 15:48:50 +00:00
|
|
|
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
|