public SimplePack(uint id, string name, uint createTime, MoneyTree moneyTree) { this.id = id; this.name = name; this.createTime = createTime; this.moneyTree = moneyTree; }
public SimplePack() { id = 0; name = ""; createTime = 0; moneyTree = new MoneyTree(); }
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; }
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; }
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); } } }
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); } } }
void Awake() { treeeffect = GetComponent <AudioSource>(); instance = this; }