public static int GetBaseID( SpikeTrapType type ) { switch ( type ) { case SpikeTrapType.WestWall: return 4360; case SpikeTrapType.NorthWall: return 4379; case SpikeTrapType.WestFloor: return 4506; case SpikeTrapType.NorthFloor: return 4512; } return 0; }
public static int GetExtendedOffset( SpikeTrapType type ) { switch ( type ) { case SpikeTrapType.WestWall: return 6; case SpikeTrapType.NorthWall: return 6; case SpikeTrapType.WestFloor: return 5; case SpikeTrapType.NorthFloor: return 5; } return 0; }
public static int GetExtendedOffset(SpikeTrapType type) { switch (type) { case SpikeTrapType.WestWall: return(6); case SpikeTrapType.NorthWall: return(6); case SpikeTrapType.WestFloor: return(5); case SpikeTrapType.NorthFloor: return(5); } return(0); }
public static int GetBaseID(SpikeTrapType type) { switch (type) { case SpikeTrapType.WestWall: return(4360); case SpikeTrapType.NorthWall: return(4379); case SpikeTrapType.WestFloor: return(4506); case SpikeTrapType.NorthFloor: return(4512); } return(0); }
public static int GetExtendedID(SpikeTrapType type) { return(GetBaseID(type) + GetExtendedOffset(type)); }
public SpikeTrap(SpikeTrapType type) : base(GetBaseID(type)) { }
public static int GetExtendedID(SpikeTrapType type) { return GetBaseID(type) + GetExtendedOffset(type); }
public SpikeTrap(SpikeTrapType type = SpikeTrapType.WestFloor) : base(GetBaseID(type)) { }
public SpikeTrap( SpikeTrapType type ) : base( GetBaseID( type ) ) { m_AnimHue = 0; }
public SpikeTrap(SpikeTrapType type) : base(GetBaseID(type)) { m_AnimHue = 0; }