public SpriteSheet ( List |
||
texture | List |
|
tileGroups | Tile>.Dictionary | |
리턴 | System.Collections.Generic |
public SpriteSheet(List<Texture2D> texture, Dictionary<string, Dictionary<string, Tile>> tileGroups)
{
LoadedTextures = texture;
if (tileGroups.ContainsKey(GLOBAL_TILE_GROUP_NAME))
{
GlobalTileGroup = tileGroups[GLOBAL_TILE_GROUP_NAME];
}
TileGroups = tileGroups.Where(v => v.Key != GLOBAL_TILE_GROUP_NAME).ToDictionary(v => v.Key, v => v.Value);
}