Exemplo n.º 1
0
    /// <summary>
    /// 写入字节流(完整版)
    /// </summary>
    protected override void toWriteBytesFull(BytesWriteStream stream)
    {
        base.toWriteBytesFull(stream);

        stream.startWriteObj();

        if (this.nowPos != null)
        {
            stream.writeBoolean(true);
            this.nowPos.writeBytesFull(stream);
        }
        else
        {
            stream.writeBoolean(false);
        }

        if (this.data != null)
        {
            stream.writeDataFullNotNull(this.data);
        }
        else
        {
            nullObjError("data");
        }

        stream.endWriteObj();
    }
Exemplo n.º 2
0
    /// <summary>
    /// 写入字节流(简版)
    /// </summary>
    protected override void toWriteBytesSimple(BytesWriteStream stream)
    {
        stream.writeInt(this.index);

        if(this.commands!=null)
        {
            stream.writeBoolean(true);
            stream.writeLen(this.commands.size());
            if(!this.commands.isEmpty())
            {
                FrameSyncCommandData[] commandsVValues=this.commands.getValues();
                for(int commandsVI=0,commandsVLen=this.commands.length();commandsVI<commandsVLen;++commandsVI)
                {
                    FrameSyncCommandData commandsV=commandsVValues[commandsVI];
                    if(commandsV!=null)
                    {
                        stream.writeBoolean(true);
                        stream.writeDataSimpleNotNull(commandsV);
                    }
                    else
                    {
                        stream.writeBoolean(false);
                    }

                }
            }
        }
        else
        {
            stream.writeBoolean(false);
        }
    }
Exemplo n.º 3
0
 /// <summary>
 /// 写入字节流(简版)
 /// </summary>
 protected override void toWriteBytesSimple(BytesWriteStream stream)
 {
     if (this.signedPlayers != null)
     {
         stream.writeBoolean(true);
         RoleShowData[] signedPlayersT = this.signedPlayers;
         stream.writeLen(signedPlayersT.Length);
         for (int signedPlayersVI = 0, signedPlayersVLen = signedPlayersT.Length; signedPlayersVI < signedPlayersVLen; ++signedPlayersVI)
         {
             RoleShowData signedPlayersV = signedPlayersT[signedPlayersVI];
             if (signedPlayersV != null)
             {
                 stream.writeBoolean(true);
                 stream.writeDataSimpleNotNull(signedPlayersV);
             }
             else
             {
                 stream.writeBoolean(false);
             }
         }
     }
     else
     {
         stream.writeBoolean(false);
     }
 }
Exemplo n.º 4
0
    /// <summary>
    /// 写入字节流(完整版)
    /// </summary>
    protected override void toWriteBytesFull(BytesWriteStream stream)
    {
        stream.startWriteObj();

        if (this.identity != null)
        {
            stream.writeDataFullNotNull(this.identity);
        }
        else
        {
            nullObjError("identity");
        }

        if (this.avatar != null)
        {
            stream.writeBoolean(true);
            stream.writeDataFullNotNull(this.avatar);
        }
        else
        {
            stream.writeBoolean(false);
        }

        stream.endWriteObj();
    }
Exemplo n.º 5
0
    /// <summary>
    /// 写入字节流(简版)
    /// </summary>
    protected override void toWriteBytesSimple(BytesWriteStream stream)
    {
        stream.writeLong(this.playerID);

        if (this.showData != null)
        {
            stream.writeBoolean(true);
            stream.writeDataSimpleNotNull(this.showData);
        }
        else
        {
            stream.writeBoolean(false);
        }

        if (this.attribute != null)
        {
            stream.writeBoolean(true);
            stream.writeDataSimpleNotNull(this.attribute);
        }
        else
        {
            stream.writeBoolean(false);
        }

        if (this.force != null)
        {
            stream.writeDataSimpleNotNull(this.force);
        }
        else
        {
            nullObjError("force");
        }
    }
Exemplo n.º 6
0
    /// <summary>
    /// 写入字节流(简版)
    /// </summary>
    protected override void toWriteBytesSimple(BytesWriteStream stream)
    {
        base.toWriteBytesSimple(stream);

        if (this.conditions != null)
        {
            stream.writeBoolean(true);
            AuctionQueryConditionData[] conditionsT = this.conditions;
            stream.writeLen(conditionsT.Length);
            for (int conditionsVI = 0, conditionsVLen = conditionsT.Length; conditionsVI < conditionsVLen; ++conditionsVI)
            {
                AuctionQueryConditionData conditionsV = conditionsT[conditionsVI];
                if (conditionsV != null)
                {
                    stream.writeBoolean(true);
                    stream.writeDataSimpleNotNull(conditionsV);
                }
                else
                {
                    stream.writeBoolean(false);
                }
            }
        }
        else
        {
            stream.writeBoolean(false);
        }

        stream.writeInt(this.page);
    }
Exemplo n.º 7
0
    /// <summary>
    /// 写入字节流(简版)
    /// </summary>
    protected override void toWriteBytesSimple(BytesWriteStream stream)
    {
        stream.writeInt(this.type);

        stream.writeInt(this.targetInstanceID);

        if (this.pos != null)
        {
            stream.writeBoolean(true);
            this.pos.writeBytesSimple(stream);
        }
        else
        {
            stream.writeBoolean(false);
        }

        if (this.dir != null)
        {
            stream.writeBoolean(true);
            this.dir.writeBytesSimple(stream);
        }
        else
        {
            stream.writeBoolean(false);
        }

        stream.writeInt(this.arg);
    }
Exemplo n.º 8
0
    /// <summary>
    /// 写入字节流(完整版)
    /// </summary>
    protected override void toWriteBytesFull(BytesWriteStream stream)
    {
        stream.startWriteObj();

        stream.writeLong(this.queryPlayerID);

        stream.writeInt(this.queryType);

        if (this.queryArgs != null)
        {
            stream.writeBoolean(true);
            int[] queryArgsT = this.queryArgs;
            stream.writeLen(queryArgsT.Length);
            for (int queryArgsVI = 0, queryArgsVLen = queryArgsT.Length; queryArgsVI < queryArgsVLen; ++queryArgsVI)
            {
                int queryArgsV = queryArgsT[queryArgsVI];
                stream.writeInt(queryArgsV);
            }
        }
        else
        {
            stream.writeBoolean(false);
        }

        stream.writeBoolean(this.isSuccess);

        stream.endWriteObj();
    }
Exemplo n.º 9
0
    /// <summary>
    /// 写入字节流(简版)
    /// </summary>
    protected override void toWriteBytesSimple(BytesWriteStream stream)
    {
        base.toWriteBytesSimple(stream);

        stream.writeInt(this.id);

        if (this.posDir != null)
        {
            stream.writeBoolean(true);
            this.posDir.writeBytesSimple(stream);
        }
        else
        {
            stream.writeBoolean(false);
        }

        if (this.args != null)
        {
            stream.writeBoolean(true);
            int[] argsT = this.args;
            stream.writeLen(argsT.Length);
            for (int argsVI = 0, argsVLen = argsT.Length; argsVI < argsVLen; ++argsVI)
            {
                int argsV = argsT[argsVI];
                stream.writeInt(argsV);
            }
        }
        else
        {
            stream.writeBoolean(false);
        }
    }
Exemplo n.º 10
0
    /// <summary>
    /// 写入字节流(完整版)
    /// </summary>
    protected override void toWriteBytesFull(BytesWriteStream stream)
    {
        stream.startWriteObj();

        stream.writeInt(this.currentSkillID);

        stream.writeInt(this.currentSkillLevel);

        if (this.currentTarget != null)
        {
            stream.writeBoolean(true);
            stream.writeDataFullNotNull(this.currentTarget);
        }
        else
        {
            stream.writeBoolean(false);
        }

        stream.writeInt(this.currentSkillStep);

        stream.writeInt(this.currentSkillStepTimePass);

        stream.writeInt(this.currentSkillBarID);

        stream.writeInt(this.currentSkillBarTimePass);

        stream.endWriteObj();
    }
Exemplo n.º 11
0
    /// <summary>
    /// 写入字节流(完整版)
    /// </summary>
    protected override void toWriteBytesFull(BytesWriteStream stream)
    {
        base.toWriteBytesFull(stream);

        stream.startWriteObj();

        stream.writeInt(this.type);

        if (this.nowPos != null)
        {
            stream.writeBoolean(true);
            this.nowPos.writeBytesFull(stream);
        }
        else
        {
            stream.writeBoolean(false);
        }

        if (this.targetPos != null)
        {
            this.targetPos.writeBytesFull(stream);
        }
        else
        {
            nullObjError("targetPos");
        }

        stream.endWriteObj();
    }
Exemplo n.º 12
0
    /// <summary>
    /// 写入字节流(完整版)
    /// </summary>
    protected override void toWriteBytesFull(BytesWriteStream stream)
    {
        base.toWriteBytesFull(stream);

        stream.startWriteObj();

        stream.writeInt(this.version);

        stream.writeInt(this.subsectionIndex);

        stream.writeInt(this.subsectionSubIndex);

        stream.writeLong(this.value);

        if (this.args != null)
        {
            stream.writeBoolean(true);
            long[] argsT = this.args;
            stream.writeLen(argsT.Length);
            for (int argsVI = 0, argsVLen = argsT.Length; argsVI < argsVLen; ++argsVI)
            {
                long argsV = argsT[argsVI];
                stream.writeLong(argsV);
            }
        }
        else
        {
            stream.writeBoolean(false);
        }

        stream.endWriteObj();
    }
Exemplo n.º 13
0
    /// <summary>
    /// 写入字节流(完整版)
    /// </summary>
    protected override void toWriteBytesFull(BytesWriteStream stream)
    {
        stream.startWriteObj();

        if (this.inviter != null)
        {
            stream.writeDataFullNotNull(this.inviter);
        }
        else
        {
            nullObjError("inviter");
        }

        if (this.simpleData != null)
        {
            stream.writeBoolean(true);
            stream.writeDataFullNotNull(this.simpleData);
        }
        else
        {
            stream.writeBoolean(false);
        }

        stream.writeLong(this.time);

        stream.endWriteObj();
    }
Exemplo n.º 14
0
    /// <summary>
    /// 写入字节流(完整版)
    /// </summary>
    protected override void toWriteBytesFull(BytesWriteStream stream)
    {
        stream.startWriteObj();

        stream.writeInt(this.id);

        stream.writeInt(this.num);

        stream.writeBoolean(this.isBind);

        stream.writeLong(this.disableTime);

        if (this.identity != null)
        {
            stream.writeBoolean(true);
            stream.writeDataFullNotNull(this.identity);
        }
        else
        {
            stream.writeBoolean(false);
        }

        stream.writeBoolean(this.hasRedPoint);

        stream.endWriteObj();
    }
Exemplo n.º 15
0
    /// <summary>
    /// 写入字节流(简版)
    /// </summary>
    protected override void toWriteBytesSimple(BytesWriteStream stream)
    {
        stream.writeInt(this.id);

        if (this.cache != null)
        {
            stream.writeBoolean(true);
            stream.writeDataSimpleNotNull(this.cache);
        }
        else
        {
            stream.writeBoolean(false);
        }

        if (this.equips != null)
        {
            stream.writeDataSimpleNotNull(this.equips);
        }
        else
        {
            nullObjError("equips");
        }

        stream.writeInt(this.mIndex);
    }
Exemplo n.º 16
0
    /// <summary>
    /// 写入字节流(简版)
    /// </summary>
    protected override void toWriteBytesSimple(BytesWriteStream stream)
    {
        base.toWriteBytesSimple(stream);

        if (this.items != null)
        {
            stream.writeBoolean(true);
            stream.writeLen(this.items.size());
            if (!this.items.isEmpty())
            {
                ItemData[] itemsVValues = this.items.getValues();
                for (int itemsVI = 0, itemsVLen = this.items.length(); itemsVI < itemsVLen; ++itemsVI)
                {
                    ItemData itemsV = itemsVValues[itemsVI];
                    if (itemsV != null)
                    {
                        stream.writeBoolean(true);
                        stream.writeDataSimpleNotNull(itemsV);
                    }
                    else
                    {
                        stream.writeBoolean(false);
                    }
                }
            }
        }
        else
        {
            stream.writeBoolean(false);
        }

        stream.writeInt(this.gridNum);
    }
Exemplo n.º 17
0
    /// <summary>
    /// 写入字节流(完整版)
    /// </summary>
    protected override void toWriteBytesFull(BytesWriteStream stream)
    {
        base.toWriteBytesFull(stream);

        stream.startWriteObj();

        stream.writeLong(this.playerID);

        stream.writeInt(this.type);

        if (this.args != null)
        {
            stream.writeBoolean(true);
            int[] argsT = this.args;
            stream.writeLen(argsT.Length);
            for (int argsVI = 0, argsVLen = argsT.Length; argsVI < argsVLen; ++argsVI)
            {
                int argsV = argsT[argsVI];
                stream.writeInt(argsV);
            }
        }
        else
        {
            stream.writeBoolean(false);
        }

        stream.endWriteObj();
    }
Exemplo n.º 18
0
    /// <summary>
    /// 写入字节流(简版)
    /// </summary>
    protected override void toWriteBytesSimple(BytesWriteStream stream)
    {
        stream.writeInt(this.type);

        stream.writeUTF(this.text);

        if (this.elements != null)
        {
            stream.writeBoolean(true);
            stream.writeLen(this.elements.size());
            if (!this.elements.isEmpty())
            {
                ChatElementData[] elementsVValues = this.elements.getValues();
                for (int elementsVI = 0, elementsVLen = this.elements.length(); elementsVI < elementsVLen; ++elementsVI)
                {
                    ChatElementData elementsV = elementsVValues[elementsVI];
                    if (elementsV != null)
                    {
                        stream.writeBoolean(true);
                        stream.writeDataSimpleNotNull(elementsV);
                    }
                    else
                    {
                        stream.writeBoolean(false);
                    }
                }
            }
        }
        else
        {
            stream.writeBoolean(false);
        }
    }
Exemplo n.º 19
0
    /// <summary>
    /// 写入字节流(完整版)
    /// </summary>
    protected override void toWriteBytesFull(BytesWriteStream stream)
    {
        stream.startWriteObj();

        stream.writeInt(this.id);

        if (this.args != null)
        {
            stream.writeBoolean(true);
            string[] argsT = this.args;
            stream.writeLen(argsT.Length);
            for (int argsVI = 0, argsVLen = argsT.Length; argsVI < argsVLen; ++argsVI)
            {
                string argsV = argsT[argsVI];
                stream.writeUTF(argsV);
            }
        }
        else
        {
            stream.writeBoolean(false);
        }

        stream.writeLong(this.logTime);

        stream.endWriteObj();
    }
Exemplo n.º 20
0
    /// <summary>
    /// 写入字节流(简版)
    /// </summary>
    protected override void toWriteBytesSimple(BytesWriteStream stream)
    {
        base.toWriteBytesSimple(stream);

        stream.writeBoolean(this.isAssist);

        stream.writeBoolean(this.isNecessary);

        if (this.areaIDList != null)
        {
            stream.writeLen(this.areaIDList.size());
            if (!this.areaIDList.isEmpty())
            {
                int[] areaIDListVValues = this.areaIDList.getValues();
                for (int areaIDListVI = 0, areaIDListVLen = this.areaIDList.length(); areaIDListVI < areaIDListVLen; ++areaIDListVI)
                {
                    int areaIDListV = areaIDListVValues[areaIDListVI];
                    stream.writeInt(areaIDListV);
                }
            }
        }
        else
        {
            nullObjError("areaIDList");
        }

        stream.writeInt(this.countryID);
    }
Exemplo n.º 21
0
    /// <summary>
    /// 写入字节流(简版)
    /// </summary>
    protected override void toWriteBytesSimple(BytesWriteStream stream)
    {
        if (this.showData != null)
        {
            stream.writeDataSimpleNotNull(this.showData);
        }
        else
        {
            nullObjError("showData");
        }

        stream.writeBoolean(this.isOnline);

        stream.writeLong(this.lastOnlineTime);

        if (this.location != null)
        {
            stream.writeBoolean(true);
            stream.writeDataSimpleNotNull(this.location);
        }
        else
        {
            stream.writeBoolean(false);
        }
    }
Exemplo n.º 22
0
    /// <summary>
    /// 写入字节流(简版)
    /// </summary>
    protected override void toWriteBytesSimple(BytesWriteStream stream)
    {
        base.toWriteBytesSimple(stream);

        stream.writeInt(this.id);

        stream.writeBoolean(this.repoterAble);

        stream.writeBoolean(this.gmAble);
    }
Exemplo n.º 23
0
    /// <summary>
    /// 写入字节流(简版)
    /// </summary>
    protected override void toWriteBytesSimple(BytesWriteStream stream)
    {
        stream.writeInt(this.instanceID);

        stream.writeInt(this.id);

        stream.writeLong(this.time);

        if (this.args != null)
        {
            stream.writeBoolean(true);
            string[] argsT = this.args;
            stream.writeLen(argsT.Length);
            for (int argsVI = 0, argsVLen = argsT.Length; argsVI < argsVLen; ++argsVI)
            {
                string argsV = argsT[argsVI];
                stream.writeUTF(argsV);
            }
        }
        else
        {
            stream.writeBoolean(false);
        }

        if (this.itemList != null)
        {
            stream.writeBoolean(true);
            stream.writeLen(this.itemList.size());
            if (!this.itemList.isEmpty())
            {
                ItemData[] itemListVValues = this.itemList.getValues();
                for (int itemListVI = 0, itemListVLen = this.itemList.length(); itemListVI < itemListVLen; ++itemListVI)
                {
                    ItemData itemListV = itemListVValues[itemListVI];
                    if (itemListV != null)
                    {
                        stream.writeBoolean(true);
                        stream.writeDataSimpleNotNull(itemListV);
                    }
                    else
                    {
                        stream.writeBoolean(false);
                    }
                }
            }
        }
        else
        {
            stream.writeBoolean(false);
        }

        stream.writeBoolean(this.readed);

        stream.writeBoolean(this.rewarded);

        stream.writeBoolean(this.hasRedPoint);

        stream.writeUTF(this.platform);
    }
Exemplo n.º 24
0
 /// <summary>
 /// 写入字节流(简版)
 /// </summary>
 protected override void toWriteBytesSimple(BytesWriteStream stream)
 {
     if (this.hero != null)
     {
         stream.writeBoolean(true);
         stream.writeDataSimpleNotNull(this.hero);
     }
     else
     {
         stream.writeBoolean(false);
     }
 }
Exemplo n.º 25
0
    /// <summary>
    /// 写入字节流(完整版)
    /// </summary>
    protected override void toWriteBytesFull(BytesWriteStream stream)
    {
        stream.startWriteObj();

        stream.writeInt(this.instanceID);

        if (this.identity != null)
        {
            stream.writeDataFullNotNull(this.identity);
        }
        else
        {
            nullObjError("identity");
        }

        if (this.pos != null)
        {
            stream.writeBoolean(true);
            stream.writeDataFullNotNull(this.pos);
        }
        else
        {
            stream.writeBoolean(false);
        }

        if (this.attributes != null)
        {
            stream.writeLen(this.attributes.size());
            if (!this.attributes.isEmpty())
            {
                int   attributesKFreeValue = this.attributes.getFreeValue();
                int[] attributesKKeys      = this.attributes.getKeys();
                int[] attributesVValues    = this.attributes.getValues();
                for (int attributesKI = attributesKKeys.Length - 1; attributesKI >= 0; --attributesKI)
                {
                    int attributesK = attributesKKeys[attributesKI];
                    if (attributesK != attributesKFreeValue)
                    {
                        int attributesV = attributesVValues[attributesKI];
                        stream.writeInt(attributesK);

                        stream.writeInt(attributesV);
                    }
                }
            }
        }
        else
        {
            nullObjError("attributes");
        }

        stream.endWriteObj();
    }
Exemplo n.º 26
0
    /// <summary>
    /// 写入字节流(简版)
    /// </summary>
    protected override void toWriteBytesSimple(BytesWriteStream stream)
    {
        base.toWriteBytesSimple(stream);

        if (this.localtion != null)
        {
            stream.writeBoolean(true);
            stream.writeDataSimpleNotNull(this.localtion);
        }
        else
        {
            stream.writeBoolean(false);
        }
    }
Exemplo n.º 27
0
    /// <summary>
    /// 写入字节流(简版)
    /// </summary>
    protected override void toWriteBytesSimple(BytesWriteStream stream)
    {
        base.toWriteBytesSimple(stream);

        if (this.dir != null)
        {
            stream.writeBoolean(true);
            this.dir.writeBytesSimple(stream);
        }
        else
        {
            stream.writeBoolean(false);
        }
    }
Exemplo n.º 28
0
    /// <summary>
    /// 写入字节流(简版)
    /// </summary>
    protected override void toWriteBytesSimple(BytesWriteStream stream)
    {
        if (this.version != null)
        {
            stream.writeBoolean(true);
            this.version.writeBytesSimple(stream);
        }
        else
        {
            stream.writeBoolean(false);
        }

        stream.writeUTF(this.redirectURL);
    }
Exemplo n.º 29
0
    /// <summary>
    /// 写入字节流(简版)
    /// </summary>
    protected override void toWriteBytesSimple(BytesWriteStream stream)
    {
        base.toWriteBytesSimple(stream);

        stream.writeInt(this.id);

        stream.writeInt(this.fightUnitID);

        stream.writeInt(this.aiType);

        stream.writeBoolean(this.isClientDrive);

        stream.writeBoolean(this.isIndependentAttacker);
    }
Exemplo n.º 30
0
    /// <summary>
    /// 写入字节流(简版)
    /// </summary>
    protected override void toWriteBytesSimple(BytesWriteStream stream)
    {
        base.toWriteBytesSimple(stream);

        stream.writeInt(this.id);

        stream.writeUTF(this.name);

        stream.writeBoolean(this.isFollowParentShow);

        stream.writeUTF(this.packageName);

        stream.writeBoolean(this.hasPrefab);
    }