public MobileJSON(Mobile entity) : base(entity) { Hit = entity.Hit; Hit_Min = entity.Hit_Min; Hit_Max = entity.Hit_Max; Mana = entity.Mana; Mana_Min = entity.Mana_Min; Mana_Max = entity.Mana_Max; Powers = entity.Powers; Body_Stand = entity.Body_Stand; Body_Move = entity.Body_Move; Body_Jump = entity.Body_Jump; }
public override void Load(SerializationReader SR) { base.Load(SR); SR.ReadStartElement(); int version = SR.ReadVersion(); switch (version) { case 0: { //string ai = SR.ReadString(); //if (ai != "") AI = Info.Instance(ai) as AI; Body_Stand = SR.ReadBodyJSON(); Body_Move = SR.ReadBodyJSON(); Body_Jump = SR.ReadBodyJSON(); break; } } SR.ReadEndElement(); }