Ejemplo n.º 1
0
 public Location(JsonLocation jsonLocation)
 {
     Name            = jsonLocation.Name;
     LocationType    = jsonLocation.LocationType;
     IsGuardianChest = jsonLocation.IsGuardianChest;
     logicString     = jsonLocation.Logic;
     hardLogicString = jsonLocation.HardLogic;
     Item            = jsonLocation.Item;
     Enum.TryParse(Name.RemoveWhitespace(), out LocationID temp);
     Id = temp;
 }
Ejemplo n.º 2
0
 public Location(JsonLocation jsonLocation, string parentName)
 {
     Name            = jsonLocation.Name;
     LocationType    = jsonLocation.LocationType;
     logicString     = jsonLocation.Logic;
     hardLogicString = jsonLocation.HardLogic;
     Item            = jsonLocation.Item;
     Enum.TryParse(Name.RemoveWhitespace(), out LocationID temp);
     ID             = temp;
     ParentAreaName = parentName;
 }