Ejemplo n.º 1
0
 public SimplePack(uint id, string name, uint createTime, MoneyTree moneyTree) 
 { 
     this.id = id; 
     this.name = name; 
     this.createTime = createTime; 
     this.moneyTree = moneyTree; 
 } 
Ejemplo n.º 2
0
 public SimplePack()  
 { 
     id = 0;  
     name = "";  
     createTime = 0;  
     moneyTree = new MoneyTree();  
 } 
Ejemplo n.º 3
0
 public int __decode(byte[] binData, ref int pos) 
 { 
     this.id = Proto4z.BaseProtoObject.decodeUI32(binData, ref pos); 
     this.name = Proto4z.BaseProtoObject.decodeString(binData, ref pos); 
     this.createTime = Proto4z.BaseProtoObject.decodeUI32(binData, ref pos); 
     this.moneyTree = new MoneyTree(); 
     this.moneyTree.__decode(binData, ref pos); 
     return pos; 
 } 
Ejemplo n.º 4
0
 public System.Collections.Generic.List<byte> __encode() 
 { 
     var data = new System.Collections.Generic.List<byte>(); 
     data.AddRange(Proto4z.BaseProtoObject.encodeUI32(this.id)); 
     data.AddRange(Proto4z.BaseProtoObject.encodeString(this.name)); 
     data.AddRange(Proto4z.BaseProtoObject.encodeUI32(this.createTime)); 
     if (this.moneyTree == null) this.moneyTree = new MoneyTree(); 
     data.AddRange(this.moneyTree.__encode()); 
     return data; 
 } 
Ejemplo n.º 5
0
 public static void UpdateGardeningSkillJournal(MoneyTree ths, Gardening gardeningSkill, PlantDefinition harvestPlantDef, List<GameObject> objectsHarvested)
 {
     foreach (GameObject obj2 in objectsHarvested)
     {
         HarvestMoneyBag bag = obj2 as HarvestMoneyBag;
         if (bag != null)
         {
             gardeningSkill.MoneyBagHarvested(bag.Value, harvestPlantDef);
         }
     }
 }
Ejemplo n.º 6
0
 public static void UpdateGardeningSkillJournal(MoneyTree ths, Gardening gardeningSkill, PlantDefinition harvestPlantDef, List <GameObject> objectsHarvested)
 {
     foreach (GameObject obj2 in objectsHarvested)
     {
         HarvestMoneyBag bag = obj2 as HarvestMoneyBag;
         if (bag != null)
         {
             gardeningSkill.MoneyBagHarvested(bag.Value, harvestPlantDef);
         }
     }
 }
Ejemplo n.º 7
0
 void Awake()
 {
     treeeffect = GetComponent <AudioSource>();
     instance   = this;
 }