2021-01-14 11:52:01 -06:00
|
|
|
#ifndef SCRIPTINGLANGUAGE_H
|
|
|
|
#define SCRIPTINGLANGUAGE_H
|
|
|
|
|
2021-01-20 21:42:14 -06:00
|
|
|
#include "types.h"
|
|
|
|
|
2021-01-15 15:43:32 -06:00
|
|
|
class ScriptingLanguage {
|
|
|
|
public:
|
|
|
|
virtual void Initialize() = 0;
|
|
|
|
virtual void Update(double delta) = 0;
|
|
|
|
virtual void Close() = 0;
|
2021-01-20 21:42:14 -06:00
|
|
|
virtual bool HasHook(const char * name) = 0;
|
2021-01-15 15:43:32 -06:00
|
|
|
static ScriptingLanguage *GetCurrentLanguage();
|
|
|
|
protected:
|
|
|
|
static ScriptingLanguage *language;
|
|
|
|
};
|
2021-01-14 11:52:01 -06:00
|
|
|
|
|
|
|
#endif /* SCRIPTINGLANGUAGE_H */
|