Ejemplo n.º 1
0
        public virtual void Deserialize(byte[] packetsBuffer, ref int index)
        {
            uint skillId = 0;

            Serializer.DeserializeData(packetsBuffer, ref index, out skillId);

            SkillModel model = ResourcesHandler.GetSkill(skillId);
        }
Ejemplo n.º 2
0
        protected void LoadSkill(uint skillId)
        {
            SkillModel model = ResourcesHandler.GetSkill(skillId);

            Id       = model.Id;
            Name     = model.Name;
            IsCircle = model.IsCircle;
            Effects  = model.Effects;
            CastTime = model.CastTime;
            MaxScope = model.MaxScope;
            Radius   = model.Radius;
            Level    = model.Level;
            ManaCost = model.ManaCost;
        }