示例#1
0
    public virtual void Deserialize(ByteProtocol protocol)
    {
        trigger = (SkillTrigger)protocol.getInt32();
        type    = (SkillNodeType)protocol.getInt32();
        //  UnityEngine.Debug.LogError("get type" +(Int32)type);
        var len = protocol.getInt32();

        //  UnityEngine.Debug.LogError("get nextNode Count" +len);
        nextNodes.Clear();
        for (int i = 0; i < len; i++)
        {
            var node = new SkillNode();
            node.Deserialize(protocol);
            nextNodes.Add(node);
        }
        len = protocol.getInt32();
        boolParams.Clear();
        for (int i = 0; i < len; i++)
        {
            boolParams.Add(protocol.getBoolean());
        }
        len = protocol.getInt32();
        fixedParams.Clear();
        for (int i = 0; i < len; i++)
        {
            fixedParams.Add(protocol.getRatio());
        }
    }
示例#2
0
 public void Deserialize(ByteProtocol protocol)
 {
     weaponId       = (WeaponId)protocol.getInt32();
     weaponType     = (WeaponType)protocol.getInt32();
     defalutSkillId = (SkillId)protocol.getInt32();
     fixedParams.Deserialize(protocol);
 }
示例#3
0
 public override void Deserialize(ByteProtocol protocol)
 {
     Weaponname = protocol.getString();
     WeaponInfo = protocol.getString();
     uiIcon     = IdToObj <Sprite>(protocol.getInt32());
     idleAnim   = IdToObj <AnimationClip>(protocol.getInt32());
     ItemPrefab = IdToObj <GameObject>(protocol.getInt32());
 }
示例#4
0
 public override void Deserialize(ByteProtocol protocol)
 {
     skillname         = protocol.getString();
     skillInfo         = protocol.getString();
     uiIcon            = IdToObj <Sprite>(protocol.getInt32());
     useOverAnim       = IdToObj <AnimationClip>(protocol.getInt32());
     useOverAnimSspeed = protocol.getRatio().ToFloat();
     ItemPrefab        = IdToObj <GameObject>(protocol.getInt32());
 }
示例#5
0
    public virtual void Deserialize(ByteProtocol protocol)
    {
        intType = protocol.getInt32();

        var len = protocol.getInt32();

        childNodes.Clear();
        for (int i = 0; i < len; i++)
        {
            var node = new AINode();
            node.Deserialize(protocol);
            childNodes.Add(node);
        }
    }
示例#6
0
 public override void Deserialize(ByteProtocol protocol)
 {
     skillId = (SkillId)protocol.getInt32();
     //    UnityEngine.Debug.LogError("get skillId" +(Int32)skillId);
     coolDownTime = protocol.getRatio();
     animTime     = protocol.getRatio();
     key          = (KeyNum)protocol.getByte();
     base.Deserialize(protocol);
 }