Table of Contents

Class TileProperties

Namespace
PopcorningGuineaPig.Engine.Gameplay
Assembly
PopcorningGuineaPig.Engine.dll

Properties for individual tiles within a tileset.

public class TileProperties
Inheritance
TileProperties
Inherited Members

Properties

AnimationFrames

public List<int> AnimationFrames { get; set; }

Property Value

List<int>

AnimationSpeed

public float AnimationSpeed { get; set; }

Property Value

float

IsAnimated

public bool IsAnimated { get; set; }

Property Value

bool

IsInteractable

public bool IsInteractable { get; set; }

Property Value

bool

IsSolid

public bool IsSolid { get; set; }

Property Value

bool

IsWalkable

public bool IsWalkable { get; set; }

Property Value

bool

Opacity

public float Opacity { get; set; }

Property Value

float

Properties

public Dictionary<string, string> Properties { get; set; }

Property Value

Dictionary<string, string>

Tint

public Color Tint { get; set; }

Property Value

Color

Type

public string Type { get; set; }

Property Value

string

Methods

GetBoolProperty(string, bool)

Gets a property value as a boolean.

public bool GetBoolProperty(string key, bool defaultValue = false)

Parameters

key string

Property key

defaultValue bool

Default value if property not found or invalid

Returns

bool

Boolean value

GetFloatProperty(string, float)

Gets a property value as a float.

public float GetFloatProperty(string key, float defaultValue = 0)

Parameters

key string

Property key

defaultValue float

Default value if property not found or invalid

Returns

float

Float value

GetIntProperty(string, int)

Gets a property value as an integer.

public int GetIntProperty(string key, int defaultValue = 0)

Parameters

key string

Property key

defaultValue int

Default value if property not found or invalid

Returns

int

Integer value

GetProperty(string)

Gets a custom property value.

public string GetProperty(string key)

Parameters

key string

Property 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)

Parameters

key string

Property key

value string

Property value