C# Class OpenRA.TileSet

Mostrar archivo Open project: pchote/OpenRA Class Usage Examples

Public Properties

Property Type Description
EditorTemplateOrder string[]
EnableDepth bool
HeightDebugColors Color[]
Id string
IgnoreTileSpriteOffsets bool
Name string
Palette string
PlayerPalette string
SheetSize int

Public Methods

Method Description
GetTerrainIndex ( TerrainTile r ) : byte
GetTerrainIndex ( string type ) : byte
GetTileInfo ( TerrainTile r ) : TerrainTileInfo
Save ( string filepath ) : void
TileSet ( ) : System.Collections.Generic
TileSet ( IReadOnlyFileSystem fileSystem, string filepath ) : System.Collections.Generic
TileSet ( string name, string id, string palette, TerrainTypeInfo terrainInfo ) : System.Collections.Generic
TryGetTerrainIndex ( string type, byte &index ) : bool
this ( byte index ) : TerrainTypeInfo

Method Details

GetTerrainIndex() public method

public GetTerrainIndex ( TerrainTile r ) : byte
r TerrainTile
return byte

GetTerrainIndex() public method

public GetTerrainIndex ( string type ) : byte
type string
return byte

GetTileInfo() public method

public GetTileInfo ( TerrainTile r ) : TerrainTileInfo
r TerrainTile
return TerrainTileInfo

Save() public method

public Save ( string filepath ) : void
filepath string
return void

TileSet() public method

public TileSet ( ) : System.Collections.Generic
return System.Collections.Generic

TileSet() public method

public TileSet ( IReadOnlyFileSystem fileSystem, string filepath ) : System.Collections.Generic
fileSystem IReadOnlyFileSystem
filepath string
return System.Collections.Generic

TileSet() public method

public TileSet ( string name, string id, string palette, TerrainTypeInfo terrainInfo ) : System.Collections.Generic
name string
id string
palette string
terrainInfo TerrainTypeInfo
return System.Collections.Generic

TryGetTerrainIndex() public method

public TryGetTerrainIndex ( string type, byte &index ) : bool
type string
index byte
return bool

this() public method

public this ( byte index ) : TerrainTypeInfo
index byte
return TerrainTypeInfo

Property Details

EditorTemplateOrder public_oe property

public string[] EditorTemplateOrder
return string[]

EnableDepth public_oe property

public bool EnableDepth
return bool

HeightDebugColors public_oe property

public Color[] HeightDebugColors
return Color[]

Id public_oe property

public string Id
return string

IgnoreTileSpriteOffsets public_oe property

public bool IgnoreTileSpriteOffsets
return bool

Name public_oe property

public string Name
return string

Palette public_oe property

public string Palette
return string

PlayerPalette public_oe property

public string PlayerPalette
return string

SheetSize public_oe property

public int SheetSize
return int