Class FieldStore
This is to offer some type safety with the fieldInstances key,values on entities.
Inheritance
System.Object
FieldStore
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: LdtkParser.dll
Syntax
Constructors
FieldStore()
Declaration
Methods
Add<T>(String, T)
Declaration
public void Add<T>(string key, T value)
Parameters
| Type |
Name |
Description |
| System.String |
key |
|
| T |
value |
|
Type Parameters
GetBool(String)
Returns a bool value from the store
Declaration
public bool GetBool(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
The field name
|
Returns
| Type |
Description |
| System.Boolean |
|
Exceptions
GetColor(String)
Returns a Color value from the store
Declaration
public Color GetColor(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
The field name
|
Returns
| Type |
Description |
| Microsoft.Xna.Framework.Color |
|
Exceptions
GetEnumValue(String)
Returns an EnumValue value from the store
Declaration
public EnumValue GetEnumValue(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
The field name
|
Returns
Exceptions
GetFloat(String)
Returns a float value from the store
Declaration
public float GetFloat(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
The field name
|
Returns
| Type |
Description |
| System.Single |
|
Exceptions
GetInt(String)
Returns an int value from the store
Declaration
public int GetInt(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
The field name
|
Returns
| Type |
Description |
| System.Int32 |
|
Exceptions
GetPoint(String)
Returns a Point value from the store
Declaration
public Point GetPoint(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
The field name
|
Returns
| Type |
Description |
| Microsoft.Xna.Framework.Point |
|
Exceptions
GetString(String)
Returns a string value from the store
Declaration
public string GetString(string key)
Parameters
| Type |
Name |
Description |
| System.String |
key |
The field name
|
Returns
| Type |
Description |
| System.String |
|
Exceptions