Class TileProperties
Properties for individual tiles within a tileset.
public class TileProperties
- Inheritance
-
TileProperties
- Inherited Members
Properties
AnimationFrames
public List<int> AnimationFrames { get; set; }
Property Value
AnimationSpeed
public float AnimationSpeed { get; set; }
Property Value
IsAnimated
public bool IsAnimated { get; set; }
Property Value
IsInteractable
public bool IsInteractable { get; set; }
Property Value
IsSolid
public bool IsSolid { get; set; }
Property Value
IsWalkable
public bool IsWalkable { get; set; }
Property Value
Opacity
public float Opacity { get; set; }
Property Value
Properties
public Dictionary<string, string> Properties { get; set; }
Property Value
Tint
public Color Tint { get; set; }
Property Value
- Color
Type
public string Type { get; set; }
Property Value
Methods
GetBoolProperty(string, bool)
Gets a property value as a boolean.
public bool GetBoolProperty(string key, bool defaultValue = false)
Parameters
Returns
- bool
Boolean value
GetFloatProperty(string, float)
Gets a property value as a float.
public float GetFloatProperty(string key, float defaultValue = 0)
Parameters
Returns
- float
Float value
GetIntProperty(string, int)
Gets a property value as an integer.
public int GetIntProperty(string key, int defaultValue = 0)
Parameters
Returns
- int
Integer value
GetProperty(string)
Gets a custom property value.
public string GetProperty(string key)
Parameters
keystringProperty key
Returns
- string
Property value, or empty string if not found
SetProperty(string, string)
Sets a custom property value.
public void SetProperty(string key, string value)