mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-19 12:14:35 +02:00
TypeInfoGen will now autobind doom scripts.
This commit is contained in:
+72
-19
@@ -39,25 +39,6 @@ If you have questions concerning this license or the applicable additional terms
|
||||
|
||||
static const int DELAY_DORMANT_TIME = 3000;
|
||||
|
||||
extern const idEventDef EV_PostSpawn;
|
||||
extern const idEventDef EV_FindTargets;
|
||||
extern const idEventDef EV_Touch;
|
||||
extern const idEventDef EV_Use;
|
||||
extern const idEventDef EV_Activate;
|
||||
extern const idEventDef EV_ActivateTargets;
|
||||
extern const idEventDef EV_Hide;
|
||||
extern const idEventDef EV_Show;
|
||||
extern const idEventDef EV_GetShaderParm;
|
||||
extern const idEventDef EV_SetShaderParm;
|
||||
extern const idEventDef EV_SetOwner;
|
||||
extern const idEventDef EV_GetAngles;
|
||||
extern const idEventDef EV_SetAngles;
|
||||
extern const idEventDef EV_SetLinearVelocity;
|
||||
extern const idEventDef EV_SetAngularVelocity;
|
||||
extern const idEventDef EV_SetSkin;
|
||||
extern const idEventDef EV_StartSoundShader;
|
||||
extern const idEventDef EV_StopSound;
|
||||
extern const idEventDef EV_CacheSoundShader;
|
||||
|
||||
// Think flags
|
||||
enum {
|
||||
@@ -159,6 +140,8 @@ public:
|
||||
void Save( idSaveGame *savefile ) const;
|
||||
void Restore( idRestoreGame *savefile );
|
||||
|
||||
virtual bool InvokeNativeScript(const char* name) { return false; }
|
||||
|
||||
const char * GetEntityDefName( void ) const;
|
||||
void SetName( const char *name );
|
||||
const char * GetName( void ) const;
|
||||
@@ -438,68 +421,131 @@ private:
|
||||
void UpdatePVSAreas( void );
|
||||
public:
|
||||
// events
|
||||
ID_SCRIPT_EVENT( "getName", 's' )
|
||||
void Event_GetName( void );
|
||||
ID_SCRIPT_EVENT( "setName", 0 )
|
||||
void Event_SetName( const char *name );
|
||||
ID_SCRIPT_EVENT( "<findTargets>", 0 )
|
||||
void Event_FindTargets( void );
|
||||
ID_SCRIPT_EVENT( "activateTargets", 0 )
|
||||
void Event_ActivateTargets( idEntity *activator );
|
||||
ID_SCRIPT_EVENT( "numTargets", 'f' )
|
||||
void Event_NumTargets( void );
|
||||
ID_SCRIPT_EVENT( "getTarget", 'e' )
|
||||
void Event_GetTarget( float index );
|
||||
ID_SCRIPT_EVENT( "randomTarget", 'e' )
|
||||
void Event_RandomTarget( const char *ignore );
|
||||
ID_SCRIPT_EVENT( "bind", 0 )
|
||||
void Event_Bind( idEntity *master );
|
||||
ID_SCRIPT_EVENT( "bindPosition", 0 )
|
||||
void Event_BindPosition( idEntity *master );
|
||||
ID_SCRIPT_EVENT( "bindToJoint", 0 )
|
||||
void Event_BindToJoint( idEntity *master, const char *jointname, float orientated );
|
||||
ID_SCRIPT_EVENT( "unbind", 0 )
|
||||
void Event_Unbind( void );
|
||||
ID_SCRIPT_EVENT( "removeBinds", 0 )
|
||||
void Event_RemoveBinds( void );
|
||||
ID_SCRIPT_EVENT( "<spawnbind>", 0 )
|
||||
void Event_SpawnBind( void );
|
||||
ID_SCRIPT_EVENT( "setOwner", 0 )
|
||||
void Event_SetOwner( idEntity *owner );
|
||||
ID_SCRIPT_EVENT( "setModel", 0 )
|
||||
void Event_SetModel( const char *modelname );
|
||||
ID_SCRIPT_EVENT( "setSkin", 0 )
|
||||
void Event_SetSkin( const char *skinname );
|
||||
ID_SCRIPT_EVENT( "getShaderParm", 'f' )
|
||||
void Event_GetShaderParm( int parmnum );
|
||||
ID_SCRIPT_EVENT( "setShaderParm", 0 )
|
||||
void Event_SetShaderParm( int parmnum, float value );
|
||||
ID_SCRIPT_EVENT( "setShaderParms", 0 )
|
||||
void Event_SetShaderParms( float parm0, float parm1, float parm2, float parm3 );
|
||||
ID_SCRIPT_EVENT( "setColor", 0 )
|
||||
void Event_SetColor( float red, float green, float blue );
|
||||
ID_SCRIPT_EVENT( "getColor", 'v' )
|
||||
void Event_GetColor( void );
|
||||
ID_SCRIPT_EVENT( "isHidden", 'd' )
|
||||
void Event_IsHidden( void );
|
||||
ID_SCRIPT_EVENT( "hide", 0 )
|
||||
void Event_Hide( void );
|
||||
ID_SCRIPT_EVENT( "show", 0 )
|
||||
void Event_Show( void );
|
||||
ID_SCRIPT_EVENT( "cacheSoundShader", 0 )
|
||||
void Event_CacheSoundShader( const char *soundName );
|
||||
ID_SCRIPT_EVENT( "startSoundShader", 'f' )
|
||||
void Event_StartSoundShader( const char *soundName, int channel );
|
||||
ID_SCRIPT_EVENT( "stopSound", 0 )
|
||||
void Event_StopSound( int channel, int netSync );
|
||||
ID_SCRIPT_EVENT( "startSound", 'f' )
|
||||
void Event_StartSound( const char *soundName, int channel, int netSync );
|
||||
ID_SCRIPT_EVENT( "fadeSound", 0 )
|
||||
void Event_FadeSound( int channel, float to, float over );
|
||||
ID_SCRIPT_EVENT( "getWorldOrigin", 'v' )
|
||||
void Event_GetWorldOrigin( void );
|
||||
ID_SCRIPT_EVENT( "setWorldOrigin", 0 )
|
||||
void Event_SetWorldOrigin( idVec3 const &org );
|
||||
ID_SCRIPT_EVENT( "getOrigin", 'v' )
|
||||
void Event_GetOrigin( void );
|
||||
ID_SCRIPT_EVENT( "setOrigin", 0 )
|
||||
void Event_SetOrigin( const idVec3 &org );
|
||||
ID_SCRIPT_EVENT( "getAngles", 'v' )
|
||||
void Event_GetAngles( void );
|
||||
ID_SCRIPT_EVENT( "setAngles", 0 )
|
||||
void Event_SetAngles( const idAngles &ang );
|
||||
ID_SCRIPT_EVENT( "setLinearVelocity", 0 )
|
||||
void Event_SetLinearVelocity( const idVec3 &velocity );
|
||||
ID_SCRIPT_EVENT( "getLinearVelocity", 'v' )
|
||||
void Event_GetLinearVelocity( void );
|
||||
ID_SCRIPT_EVENT( "setAngularVelocity", 0 )
|
||||
void Event_SetAngularVelocity( const idVec3 &velocity );
|
||||
ID_SCRIPT_EVENT( "getAngularVelocity", 'v' )
|
||||
void Event_GetAngularVelocity( void );
|
||||
ID_SCRIPT_EVENT( "setSize", 0 )
|
||||
void Event_SetSize( const idVec3 &mins, const idVec3 &maxs );
|
||||
ID_SCRIPT_EVENT( "getSize", 'v' )
|
||||
void Event_GetSize( void );
|
||||
ID_SCRIPT_EVENT( "getMins", 'v' )
|
||||
void Event_GetMins( void );
|
||||
ID_SCRIPT_EVENT( "getMaxs", 'v' )
|
||||
void Event_GetMaxs( void );
|
||||
ID_SCRIPT_EVENT( "touches", 'd' )
|
||||
void Event_Touches( idEntity *ent );
|
||||
ID_SCRIPT_EVENT( "setGuiParm", 0 )
|
||||
void Event_SetGuiParm( const char *key, const char *val );
|
||||
ID_SCRIPT_EVENT( "setGuiFloat", 0 )
|
||||
void Event_SetGuiFloat( const char *key, float f );
|
||||
ID_SCRIPT_EVENT( "getNextKey", 's' )
|
||||
void Event_GetNextKey( const char *prefix, const char *lastMatch );
|
||||
ID_SCRIPT_EVENT( "setKey", 0 )
|
||||
void Event_SetKey( const char *key, const char *value );
|
||||
ID_SCRIPT_EVENT( "getKey", 's' )
|
||||
void Event_GetKey( const char *key );
|
||||
ID_SCRIPT_EVENT( "getIntKey", 'f' )
|
||||
void Event_GetIntKey( const char *key );
|
||||
ID_SCRIPT_EVENT( "getFloatKey", 'f' )
|
||||
void Event_GetFloatKey( const char *key );
|
||||
ID_SCRIPT_EVENT( "getVectorKey", 'v' )
|
||||
void Event_GetVectorKey( const char *key );
|
||||
ID_SCRIPT_EVENT( "getEntityKey", 'e' )
|
||||
void Event_GetEntityKey( const char *key );
|
||||
ID_SCRIPT_EVENT( "restorePosition", 0 )
|
||||
void Event_RestorePosition( void );
|
||||
ID_SCRIPT_EVENT( "<updateCameraTarget>", 0 )
|
||||
void Event_UpdateCameraTarget( void );
|
||||
ID_SCRIPT_EVENT( "distanceTo", 'f' )
|
||||
void Event_DistanceTo( idEntity *ent );
|
||||
ID_SCRIPT_EVENT( "distanceToPoint", 'f' )
|
||||
void Event_DistanceToPoint( const idVec3 &point );
|
||||
ID_SCRIPT_EVENT( "startFx", 0 )
|
||||
void Event_StartFx( const char *fx );
|
||||
ID_SCRIPT_EVENT( "waitFrame", 0 )
|
||||
void Event_WaitFrame( void );
|
||||
ID_SCRIPT_EVENT( "wait", 0 )
|
||||
void Event_Wait( float time );
|
||||
ID_SCRIPT_EVENT( "hasFunction", 'd' )
|
||||
void Event_HasFunction( const char *name );
|
||||
ID_SCRIPT_EVENT( "callFunction", 0 )
|
||||
void Event_CallFunction( const char *name );
|
||||
ID_SCRIPT_EVENT( "setNeverDormant", 0 )
|
||||
void Event_SetNeverDormant( int enable );
|
||||
};
|
||||
|
||||
@@ -558,12 +604,19 @@ protected:
|
||||
damageEffect_t * damageEffects;
|
||||
|
||||
public:
|
||||
ID_SCRIPT_EVENT( "getJointHandle", 'd' )
|
||||
void Event_GetJointHandle( const char *jointname );
|
||||
ID_SCRIPT_EVENT( "clearAllJoints", 0 )
|
||||
void Event_ClearAllJoints( void );
|
||||
ID_SCRIPT_EVENT( "clearJoint", 0 )
|
||||
void Event_ClearJoint( jointHandle_t jointnum );
|
||||
ID_SCRIPT_EVENT( "setJointPos", 0 )
|
||||
void Event_SetJointPos( jointHandle_t jointnum, jointModTransform_t transform_type, const idVec3 &pos );
|
||||
ID_SCRIPT_EVENT( "setJointAngle", 0 )
|
||||
void Event_SetJointAngle( jointHandle_t jointnum, jointModTransform_t transform_type, const idAngles &angles );
|
||||
ID_SCRIPT_EVENT( "getJointPos", 'v' )
|
||||
void Event_GetJointPos( jointHandle_t jointnum );
|
||||
ID_SCRIPT_EVENT( "getJointAngle", 'v' )
|
||||
void Event_GetJointAngle( jointHandle_t jointnum );
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user