public Global_Units[] GetAll() { var values = (CompiledTypes.Global_Units.RowValues[])Enum.GetValues(typeof(CompiledTypes.Global_Units.RowValues)); Global_Units[] returnList = new Global_Units[values.Length]; for (int i = 0; i < values.Length; i++) { returnList[i] = Get(values[i]); } return(returnList); }
public UnitVariantReference(CastleDBParser.RootNode root, SimpleJSON.JSONNode node) { UnitVariantRef = new CompiledTypes.Global_Units(root, CompiledTypes.Global_Units.GetRowValue(node["UnitVariantRef"])); }