public Units_sub_categories(CastleDBParser.RootNode root, RowValues line) { SimpleJSON.JSONNode node = root.GetSheetWithName("Units_sub_categories").Rows[(int)line]; id = node["id"]; Classification = node["Classification"]; Name = node["Name"]; Category = new CompiledTypes.Units_categories(root, CompiledTypes.Units_categories.GetRowValue(node["Category"])); MapModel = node["MapModel"]; DeathFX = new CompiledTypes.FX_Storage(root, CompiledTypes.FX_Storage.GetRowValue(node["DeathFX"])); }
public Units_categories[] GetAll() { var values = (CompiledTypes.Units_categories.RowValues[])Enum.GetValues(typeof(CompiledTypes.Units_categories.RowValues)); Units_categories[] returnList = new Units_categories[values.Length]; for (int i = 0; i < values.Length; i++) { returnList[i] = Get(values[i]); } return(returnList); }
public DuelSpawnPoints(CastleDBParser.RootNode root, SimpleJSON.JSONNode node) { DuelSpawnPointName = node["DuelSpawnPointName"]; DuelSpawnPointCategory = new CompiledTypes.Units_categories(root, CompiledTypes.Units_categories.GetRowValue(node["DuelSpawnPointCategory"])); }