Change Trigger() methods to use triggermode_t

This commit is contained in:
Marco Cawthorne 2022-12-22 16:11:46 -08:00
parent 80a8fedbc2
commit df673ced42
Signed by: eukara
GPG key ID: CE2032F0A2882A22
3 changed files with 6 additions and 6 deletions

View file

@ -50,7 +50,7 @@ entity_spritegod:NSPointTrigger
virtual void(string, string) SpawnKey; virtual void(string, string) SpawnKey;
virtual void(void) Respawn; virtual void(void) Respawn;
virtual void(void) EmitSprite; virtual void(void) EmitSprite;
virtual void(entity, int) Trigger; virtual void(entity, triggermode_t) Trigger;
virtual void(void) StartTimer; virtual void(void) StartTimer;
virtual void(void) Spawned; virtual void(void) Spawned;
}; };
@ -62,7 +62,7 @@ entity_spritegod::StartTimer(void)
} }
void void
entity_spritegod::Trigger(entity eAct, int iState) entity_spritegod::Trigger(entity eAct, triggermode_t iState)
{ {
switch (iState) { switch (iState) {
case TRIG_OFF: case TRIG_OFF:

View file

@ -38,11 +38,11 @@ player_giveitems:NSPointTrigger
{ {
void(void) player_giveitems; void(void) player_giveitems;
virtual void(entity, int) Trigger; virtual void(entity, triggermode_t) Trigger;
}; };
void void
player_giveitems::Trigger(entity eAct, int iState) player_giveitems::Trigger(entity eAct, triggermode_t iState)
{ {
player pl = (player)eAct; player pl = (player)eAct;

View file

@ -55,11 +55,11 @@ sphere_explosion:NSPointTrigger
virtual void(void) Respawn; virtual void(void) Respawn;
virtual void(string, string) SpawnKey; virtual void(string, string) SpawnKey;
virtual void(entity, int) Trigger; virtual void(entity, triggermode_t) Trigger;
}; };
void void
sphere_explosion::Trigger(entity eAct, int iState) sphere_explosion::Trigger(entity eAct, triggermode_t iState)
{ {
FX_Explosion(origin); FX_Explosion(origin);
} }