コード例 #1
0
ファイル: HeroCardCmd.cs プロジェクト: zhutaorun/unitygame
        public override void derialize(ByteBuffer bu)
        {
            base.derialize(bu);

            bu.readUnsignedInt8(ref slot);
            bu.readUnsignedInt8(ref who);
            bu.readUnsignedInt8(ref byActionType);
            mobject = new t_Card();
            mobject.derialize(bu);

            //bu.readUnsignedInt8(ref attackType);
            //bu.readUnsignedInt32(ref pAttThisID);
            //bu.readUnsignedInt32(ref pDefThisID);
        }
コード例 #2
0
ファイル: HeroCardCmd.cs プロジェクト: zhutaorun/unitygame
        public override void derialize(ByteBuffer bu)
        {
            base.derialize(bu);

            maincard = new t_Card();
            maincard.derialize(bu);

            bu.readUnsignedInt8(ref opType);
            bu.readUnsignedInt16(ref count);

            int idx = 0;
            othercard = new t_Card[count];
            t_Card cardItem;
            for(; idx < count; ++idx)
            {
                cardItem = new t_Card();
                cardItem.derialize(bu);
                othercard[idx] = cardItem;
            }
        }
コード例 #3
0
ファイル: HeroCardCmd.cs プロジェクト: zhutaorun/unitygame
        public override void derialize(ByteBuffer bu)
        {
            base.derialize(bu);

            bu.readUnsignedInt32(ref dwMagicType);
            bu.readUnsignedInt8(ref type);
            bu.readUnsignedInt16(ref count);

            A_object = new t_Card();
            A_object.derialize(bu);

            if (count > 0)
            {
                defList = new t_Card[count];
                for (int idx = 0; idx < count; ++idx)
                {
                    defList[idx] = new t_Card();
                    defList[idx].derialize(bu);
                }
            }
        }
コード例 #4
0
ファイル: HeroCardCmd.cs プロジェクト: zhutaorun/unitygame
 public void derialize(ByteBuffer bu)
 {
     bu.readUnsignedInt8(ref who);
     mobject = new t_Card();
     mobject.derialize(bu);
 }