Example #1
0
File: Card.cs Project: QuenZhan/EWP
 public Card(ParseObject po)
 {
     this.pobj=po;
     var card=this;
     card.id=po.ObjectId;
     po.TryGetValue<string>("caster",out caster);
     po.TryGetValue<string>("name",out name);
     po.TryGetValue<string>("title",out title);
     po.TryGetValue<string>("description",out description);
     po.TryGetValue<string>("armor",out armor);
     po.TryGetValue<string>("weapon",out weapon);
     po.TryGetValue<string>("type",out type);
     po.TryGetValue<string>("tagetMask",out tagetMask);
     po.TryGetValue<int>("life",out life);
     po.TryGetValue<int>("attackDamge",out attackDamage);
     po.TryGetValue<int>("magicPower",out magicPower);
     po.TryGetValue<int>("rarity",out rarity);
 }