Inheritance: MonoBehaviour
Ejemplo n.º 1
0
 public XElement ToXml()
 {
     return
         (new XElement("Char",
                       new XAttribute("id", CharacterId),
                       new XElement("ObjectType", ObjectType),
                       new XElement("Level", Level),
                       new XElement("StatPoint", StatPoint),
                       new XElement("Exp", Exp),
                       new XElement("CurrentFame", CurrentFame),
                       new XElement("Equipment", Equipment.Select(x => (short)x).ToArray().ToCommaSepString()),
                       new XElement("MaxHitPoints", MaxHitPoints),
                       new XElement("HitPoints", HitPoints),
                       new XElement("MaxMagicPoints", MaxMagicPoints),
                       new XElement("MagicPoints", MagicPoints),
                       new XElement("Attack", Attack),
                       new XElement("Defense", Defense),
                       new XElement("Speed", Speed),
                       new XElement("Dexterity", Dexterity),
                       new XElement("HpRegen", HpRegen),
                       new XElement("MpRegen", MpRegen),
                       new XElement("Tex1", Tex1),
                       new XElement("Tex2", Tex2),
                       new XElement("Texture", Skin),
                       new XElement("PCStats", Convert.ToBase64String(PCStats.Write())),
                       new XElement("HealthStackCount", HealthStackCount),
                       new XElement("MagicStackCount", MagicStackCount),
                       new XElement("Dead", Dead),
                       new XElement("HasBackpack", (HasBackpack) ? "1" : "0")
                       ));
 }
Ejemplo n.º 2
0
        public PlayerC(
            long id,
            string name,
            int level,
            float exp,
            PCStats stats,
            PCSkill[] skills,
            AuthenticationData authData
            )
            : base(id, name, level, exp, stats, skills)

        {
            _authenticationData = authData;
        }