mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-20 12:40:25 +02:00
TypeInfoGen will now autobind doom scripts.
This commit is contained in:
@@ -54,7 +54,6 @@ struct idEventFunc {
|
||||
#define END_CLASS { NULL, NULL } };
|
||||
|
||||
|
||||
|
||||
class idEventArg {
|
||||
public:
|
||||
int type;
|
||||
@@ -97,6 +96,7 @@ public: \
|
||||
static idClass *CreateInstance( void ); \
|
||||
virtual idTypeInfo *GetType( void ) const; \
|
||||
static idTypeInfo &GetClassType( void ); \
|
||||
static const int __typeinfogen_has_class_prototype = 1; \
|
||||
virtual intptr_t Invoke(const char* functionName, void *param1) override; \
|
||||
virtual bool HasNativeFunction(const char* functionName) override; \
|
||||
static idEventFunc<nameofclass> eventCallbacks[]
|
||||
@@ -146,6 +146,7 @@ Use this on single inheritance abstract classes only.
|
||||
#define ABSTRACT_PROTOTYPE( nameofclass ) \
|
||||
public: \
|
||||
static idTypeInfo Type; \
|
||||
static const int __typeinfogen_has_abstract_prototype = 1; \
|
||||
static idClass *CreateInstance( void ); \
|
||||
static idTypeInfo &GetClassType( void ); \
|
||||
virtual idTypeInfo *GetType( void ) const; \
|
||||
@@ -253,6 +254,7 @@ public:
|
||||
bool PostEventSec(const idEventDef* ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6);
|
||||
bool PostEventSec(const idEventDef* ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7);
|
||||
bool PostEventSec(const idEventDef* ev, float time, idEventArg arg1, idEventArg arg2, idEventArg arg3, idEventArg arg4, idEventArg arg5, idEventArg arg6, idEventArg arg7, idEventArg arg8);
|
||||
const idEventDef* FindEventDef(const char* name, const char* formatspec = NULL) const;
|
||||
|
||||
bool ProcessEvent(const idEventDef* ev);
|
||||
bool ProcessEvent(const idEventDef* ev, idEventArg arg1);
|
||||
@@ -388,4 +390,4 @@ ID_INLINE bool idClass::RespondsTo(const idEventDef& ev) const {
|
||||
return c->RespondsTo(ev);
|
||||
}
|
||||
|
||||
#endif /* !__SYS_CLASS_H__ */
|
||||
#endif /* !__SYS_CLASS_H__ */
|
||||
|
||||
Reference in New Issue
Block a user