Constructor Sprite
Sprite(String, String, SizeF, PointF)
Initializes a new instance of the Sprite class used for drawing in game textures on the screen.
Declaration
public Sprite(string textureDict, string textureName, SizeF size, PointF position)
Parameters
Type | Name | Description |
---|---|---|
System.String | textureDict | The Texture dictionary where the Sprite is stored (the *.ytd file). |
System.String | textureName | Name of the Sprite inside the Texture dictionary. |
System.Drawing.SizeF | size | |
System.Drawing.PointF | position |
Sprite(String, String, SizeF, PointF, Color)
Initializes a new instance of the Sprite class used for drawing in game textures on the screen.
Declaration
public Sprite(string textureDict, string textureName, SizeF size, PointF position, Color color)
Parameters
Type | Name | Description |
---|---|---|
System.String | textureDict | The Texture dictionary where the Sprite is stored (the *.ytd file). |
System.String | textureName | Name of the Sprite inside the Texture dictionary. |
System.Drawing.SizeF | size | |
System.Drawing.PointF | position | |
System.Drawing.Color | color |
Sprite(String, String, SizeF, PointF, Color, Single)
Initializes a new instance of the Sprite class used for drawing in game textures on the screen.
Declaration
public Sprite(string textureDict, string textureName, SizeF size, PointF position, Color color, float rotation)
Parameters
Type | Name | Description |
---|---|---|
System.String | textureDict | The Texture dictionary where the Sprite is stored (the *.ytd file). |
System.String | textureName | Name of the Sprite inside the Texture dictionary. |
System.Drawing.SizeF | size | |
System.Drawing.PointF | position | |
System.Drawing.Color | color | |
System.Single | rotation | Set the rotation to draw the sprite, measured in degrees, see also Rotation. |
Sprite(String, String, SizeF, PointF, Color, Single, Boolean)
Initializes a new instance of the Sprite class used for drawing in game textures on the screen.
Declaration
public Sprite(string textureDict, string textureName, SizeF size, PointF position, Color color, float rotation, bool centered)
Parameters
Type | Name | Description |
---|---|---|
System.String | textureDict | The Texture dictionary where the Sprite is stored (the *.ytd file). |
System.String | textureName | Name of the Sprite inside the Texture dictionary. |
System.Drawing.SizeF | size | |
System.Drawing.PointF | position | |
System.Drawing.Color | color | |
System.Single | rotation | Set the rotation to draw the sprite, measured in degrees, see also Rotation. |
System.Boolean | centered | Position the Sprite based on its center instead of top left corner, see also Centered. |