public static EquippedObject CreateDispensableObject(string dispensableId) { EquippedObject equippedObject = new EquippedObject(); equippedObject.equippedObjectType = "dispns"; equippedObject.EquippedObjectId = dispensableId; return(equippedObject); }
public static EquippedObject CreateDurableObject(string value) { EquippedObject equippedObject = new EquippedObject(); equippedObject.equippedObjectType = "durable"; equippedObject.EquippedObjectId = value; return(equippedObject); }
public static EquippedObject CreateConsumableObject(string consumableId) { EquippedObject equippedObject = new EquippedObject(); equippedObject.equippedObjectType = "consum"; equippedObject.EquippedObjectId = consumableId; return(equippedObject); }
public static EquippedObject FromSFSData(ISFSObject obj, string properties = null) { EquippedObject equippedObject = new EquippedObject(); equippedObject.equippedObjectType = obj.GetUtfString("type"); equippedObject.EquippedObjectId = obj.GetUtfString("name"); equippedObject.PropertiesJSON = properties; return(equippedObject); }