GeneralRuleslastCreatedSprite Field |
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntaxpublic static SpriteBase lastCreatedSprite
Field Value
Type:
SpriteBase
RemarksThis reference can be used to initialize various properties of a sprite
that was just created. It can't be used to set parameters on the sprite that are
specific to that sprite type unless it is cast to the correct type (which is not
supported in the interface for defining rules). That should be done from within
the sprite's rules by checking for a specific parameter value (like "IsInitialized")
being 0 or 1, for example.
See Also