public override JSONNode GetJSON() { return(base.GetJSON() .SetAs("position", (JSONNode)position) .SetAs("type", ItemTypes.IndexLookup.GetName(blockType)) .SetAs("inventory", blockInventory.GetJSON()) .SetAs("storedFuel", storedFuel)); }
public override JSONNode GetJSON() { JSONNode jsonTodos = new JSONNode(NodeType.Array); foreach (BlueprintTodoBlock block in Todoblocks) { jsonTodos.AddToArray(block.GetJSON()); } return(base.GetJSON() .SetAs("inventory", BlockInventory.GetJSON()) .SetAs("shouldTakeItems", ShouldTakeItems) .SetAs("fullname", Fullname) .SetAs("todoblocks", jsonTodos)); }
public override JSONNode GetJSON() { return(base.GetJSON() .SetAs("inventory", blockInventory.GetJSON())); }