Beispiel #1
0
        public static EquippedObject CreateDispensableObject(string dispensableId)
        {
            EquippedObject equippedObject = new EquippedObject();

            equippedObject.equippedObjectType = "dispns";
            equippedObject.EquippedObjectId   = dispensableId;
            return(equippedObject);
        }
Beispiel #2
0
        public static EquippedObject CreateDurableObject(string value)
        {
            EquippedObject equippedObject = new EquippedObject();

            equippedObject.equippedObjectType = "durable";
            equippedObject.EquippedObjectId   = value;
            return(equippedObject);
        }
Beispiel #3
0
        public static EquippedObject CreateConsumableObject(string consumableId)
        {
            EquippedObject equippedObject = new EquippedObject();

            equippedObject.equippedObjectType = "consum";
            equippedObject.EquippedObjectId   = consumableId;
            return(equippedObject);
        }
Beispiel #4
0
        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);
        }