Class TileProperties
Properties for individual tiles within a tileset.
Inherited Members
Namespace: PopcorningGuineaPig.Engine.Gameplay
Assembly: PopcorningGuineaPig.Engine.dll
Syntax
public class TileProperties
Properties
| Edit this page View SourceAnimationFrames
Declaration
public List<int> AnimationFrames { get; set; }
Property Value
| Type | Description |
|---|---|
| List<int> |
AnimationSpeed
Declaration
public float AnimationSpeed { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
IsAnimated
Declaration
public bool IsAnimated { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsInteractable
Declaration
public bool IsInteractable { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsSolid
Declaration
public bool IsSolid { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsWalkable
Declaration
public bool IsWalkable { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Opacity
Declaration
public float Opacity { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Properties
Declaration
public Dictionary<string, string> Properties { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> |
Tint
Declaration
public Color Tint { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
Type
Declaration
public string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceGetBoolProperty(string, bool)
Gets a property value as a boolean.
Declaration
public bool GetBoolProperty(string key, bool defaultValue = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | Property key |
| bool | defaultValue | Default value if property not found or invalid |
Returns
| Type | Description |
|---|---|
| bool | Boolean value |
GetFloatProperty(string, float)
Gets a property value as a float.
Declaration
public float GetFloatProperty(string key, float defaultValue = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | Property key |
| float | defaultValue | Default value if property not found or invalid |
Returns
| Type | Description |
|---|---|
| float | Float value |
GetIntProperty(string, int)
Gets a property value as an integer.
Declaration
public int GetIntProperty(string key, int defaultValue = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | Property key |
| int | defaultValue | Default value if property not found or invalid |
Returns
| Type | Description |
|---|---|
| int | Integer value |
GetProperty(string)
Gets a custom property value.
Declaration
public string GetProperty(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | Property key |
Returns
| Type | Description |
|---|---|
| string | Property value, or empty string if not found |
SetProperty(string, string)
Sets a custom property value.
Declaration
public void SetProperty(string key, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | Property key |
| string | value | Property value |