• Api Documentation
Show / Hide Table of Contents
  • LdtkParser
    • Direction
    • ILayer
    • ILdtkEntity
    • IWorld
    • LayerType
    • Level
    • World
  • LdtkParser.Exceptions
    • EntityNotFoundException
    • FieldStoreException
    • InvalidTileException
    • TilesetNotFoundException
  • LdtkParser.Graphics
    • ColorConverter
    • Sprite
    • SpriteEnum
    • Tileset
  • LdtkParser.Json
    • BgPos
    • CachedPixelData
    • DefaultOverride
    • Defs
    • Entity
    • EntityInstance
    • Enum
    • FieldDef
    • FieldInstance
    • GridTile
    • Header
    • IntGrid
    • IntGridValue
    • Layer
    • LayerInstance
    • Level
    • Neighbour
    • Param
    • Project
    • RealEditorValue
    • Serialize
    • Tile
    • Tileset
    • TypeClass
    • TypeUnion
    • Value
    • ValueClass
    • ValueUnion
  • LdtkParser.Layers
    • Entities
    • EntityModel
    • EnumValue
    • FieldStore
    • IntGrid
    • Tiles

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()
Namespace: LdtkParser.Layers
Assembly: LdtkParser.dll
Syntax
public class FieldStore

Constructors

FieldStore()

Declaration
public FieldStore()

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
Name Description
T

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
Type Condition
FieldStoreException

Thrown if the key is not found in the given store

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
Type Condition
FieldStoreException

Thrown if the key is not found in the given store

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
Type Description
EnumValue
Exceptions
Type Condition
FieldStoreException

Thrown if the key is not found in the given store

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
Type Condition
FieldStoreException

Thrown if the key is not found in the given store

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
Type Condition
FieldStoreException

Thrown if the key is not found in the given store

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
Type Condition
FieldStoreException

Thrown if the key is not found in the given store

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
Type Condition
FieldStoreException

Thrown if the key is not found in the given store

In This Article
Back to top Generated by DocFX