Exemplo n.º 1
0
 public PySObject(CustomObjectData data, Vector2 tileLocation)
     : base(tileLocation, data.sdvId)
 {
     sObject   = new SObject(tileLocation, data.sdvId);
     this.data = data;
     checkData();
 }
Exemplo n.º 2
0
 public PySObject(CustomObjectData data)
     : base(data.sdvId, 1)
 {
     sObject   = new SObject(data.sdvId, 1);
     this.data = data;
     checkData();
 }
Exemplo n.º 3
0
 public virtual void rebuildData()
 {
     if (CustomObjectData.collection.Find(c => c.Value.getObject().Name == Name) is KeyValuePair <string, CustomObjectData> cd)
     {
         data = cd.Value;
     }
 }
Exemplo n.º 4
0
        public virtual ICustomObject recreate(Dictionary <string, string> additionalSaveData, object replacement)
        {
            CustomObjectData data = CustomObjectData.collection[additionalSaveData["id"]];

            if (data.bigCraftable)
            {
                return(new PySObject(data, additionalSaveData["tileLocation"].Split(',').toList(i => i.toInt()).toVector <Vector2>()));
            }
            else
            {
                return(new PySObject(CustomObjectData.collection[additionalSaveData["id"]]));
            }
        }
Exemplo n.º 5
0
 public PySObject(CustomObjectData data, Vector2 tileLocation)
     : base(tileLocation, data.sdvId)
 {
     this.data = data;
 }
Exemplo n.º 6
0
 public PySObject(CustomObjectData data)
     : base(data.sdvId, 1)
 {
     this.data = data;
 }