mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-19 20:19:50 +02:00
TypeInfoGen will now autobind doom scripts.
This commit is contained in:
@@ -29,8 +29,6 @@ If you have questions concerning this license or the applicable additional terms
|
||||
#ifndef __GAME_TRIGGER_H__
|
||||
#define __GAME_TRIGGER_H__
|
||||
|
||||
extern const idEventDef EV_Enable;
|
||||
extern const idEventDef EV_Disable;
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
@@ -60,7 +58,9 @@ public:
|
||||
protected:
|
||||
void CallScript( void ) const;
|
||||
|
||||
ID_SCRIPT_EVENT( "enable", 0 )
|
||||
void Event_Enable( void );
|
||||
ID_SCRIPT_EVENT( "disable", 0 )
|
||||
void Event_Disable( void );
|
||||
|
||||
const function_t * scriptFunction;
|
||||
@@ -101,8 +101,11 @@ private:
|
||||
|
||||
bool CheckFacing( idEntity *activator );
|
||||
void TriggerAction( idEntity *activator );
|
||||
ID_SCRIPT_EVENT( "<triggerAction>", 0 )
|
||||
void Event_TriggerAction( idEntity *activator );
|
||||
ID_SCRIPT_EVENT( "activate", 0 )
|
||||
void Event_Trigger( idEntity *activator );
|
||||
ID_SCRIPT_EVENT( "<touch>", 0 )
|
||||
void Event_Touch( idEntity *other, trace_t *trace );
|
||||
};
|
||||
|
||||
@@ -136,8 +139,11 @@ private:
|
||||
idStr entityName;
|
||||
|
||||
void TriggerAction( idEntity *activator );
|
||||
ID_SCRIPT_EVENT( "<triggerAction>", 0 )
|
||||
void Event_TriggerAction( idEntity *activator );
|
||||
ID_SCRIPT_EVENT( "activate", 0 )
|
||||
void Event_Trigger( idEntity *activator );
|
||||
ID_SCRIPT_EVENT( "<touch>", 0 )
|
||||
void Event_Touch( idEntity *other, trace_t *trace );
|
||||
};
|
||||
|
||||
@@ -171,7 +177,9 @@ private:
|
||||
idStr onName;
|
||||
idStr offName;
|
||||
|
||||
ID_SCRIPT_EVENT( "<timer>", 0 )
|
||||
void Event_Timer( void );
|
||||
ID_SCRIPT_EVENT( "activate", 0 )
|
||||
void Event_Use( idEntity *activator );
|
||||
};
|
||||
|
||||
@@ -200,7 +208,9 @@ private:
|
||||
int count;
|
||||
float delay;
|
||||
|
||||
ID_SCRIPT_EVENT( "activate", 0 )
|
||||
void Event_Trigger( idEntity *activator );
|
||||
ID_SCRIPT_EVENT( "<triggerAction>", 0 )
|
||||
void Event_TriggerAction( idEntity *activator );
|
||||
};
|
||||
|
||||
@@ -229,7 +239,9 @@ private:
|
||||
float delay;
|
||||
int nextTime;
|
||||
|
||||
ID_SCRIPT_EVENT( "<touch>", 0 )
|
||||
void Event_Touch( idEntity *other, trace_t *trace );
|
||||
ID_SCRIPT_EVENT( "activate", 0 )
|
||||
void Event_Toggle( idEntity *activator );
|
||||
};
|
||||
|
||||
@@ -248,6 +260,7 @@ public:
|
||||
CLASS_PROTOTYPE( idTrigger_Fade );
|
||||
|
||||
private:
|
||||
ID_SCRIPT_EVENT( "activate", 0 )
|
||||
void Event_Trigger( idEntity *activator );
|
||||
};
|
||||
|
||||
@@ -281,6 +294,7 @@ public:
|
||||
private:
|
||||
idClipModel * clipModel;
|
||||
|
||||
ID_SCRIPT_EVENT( "activate", 0 )
|
||||
void Event_Trigger( idEntity *activator );
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user