SpritePayload Class |
Namespace: SpriteLibrary
public class SpritePayload
The SpritePayload type exposes the following members.
Name | Description | |
---|---|---|
![]() | SpritePayload | Initializes a new instance of the SpritePayload class |
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
public class TankPayload : SpritePayload { public int Armor = 20; public int FireTime = 100; }
TankSprite.Payload = new TankPayload();
if(TankSprite.payload != null and TankSprite.payload is TankPayload) { TankPayload tPayload = (TankPayload)TankSprite.payload; tPayload.Armor--; }