class WeaponGuardBaseSource
Derived classes
View all 33 descendants
- GuardAnd
- GuardNot
- GuardOr
- WeaponGuardAnyChamberEmpty
- WeaponGuardAnyChamberFiredOut
- WeaponGuardCanAttachMag
- WeaponGuardCanDetachMag
- WeaponGuardCanSwapMag
- WeaponGuardChamberEmpty
- WeaponGuardChamberFiredOut
- WeaponGuardChamberFull
- WeaponGuardChamberHasRoomForMoreThanOne
- WeaponGuardChamberHasRoomForOne
- WeaponGuardChamberMultiHasRoomBulltet
- WeaponGuardChamberMultiHasRoomBulltetIgnoreLast
- WeaponGuardCurrentChamberEmpty
- WeaponGuardCurrentChamberFiredOut
- WeaponGuardCurrentChamberFull
- WeaponGuardHasAmmo
- WeaponGuardHasAmmoInEvent
- WeaponGuardHasAmmoInLoopedState
- WeaponGuardHasAmmoInnerMagazine
- WeaponGuardHasMag
- WeaponGuardInnerMagazineFull
- WeaponGuardInnerMagazineFullShareChamber
- WeaponGuardInternalMagazineHasRoomForBullet
- WeaponGuardIsDestroyed
- WeaponGuardJammed
- WeaponGuardMagazinesHaveEqualSizes
- WeaponGuardWeaponCharged
- WeaponGuardWeaponDischarged
- WeaponGuardWeaponManagerWantContinue
- WeaponGuardWeaponOpen
represents guard on a transition from state to state
Methods 1
bool GuardCondition(WeaponEventBase e)enable or disable transition based on condition the guard is a boolean operation executed first and which can prevent the transition from firing by returning false
Returns: true if transition is allowed