示例#1
0
    void loadData()
    {
        BattleStartRequest battleStartRequest = new BattleStartRequest();

        battleStartRequest.BattleId = GameData.g_battleId;
        ByteBuffer buffer = new ByteBuffer();

        buffer.WriteShort(132);
        buffer.WriteBytes(battleStartRequest.ToByteArray());
        networkManager.SendMessage(buffer);

        SkillRequest skillRequest = new SkillRequest();
        ByteBuffer   skillBuffer  = new ByteBuffer();

        skillBuffer.WriteShort(110);
        skillBuffer.WriteBytes(skillRequest.ToByteArray());
        networkManager.SendMessage(skillBuffer);

        EquipRequest itemRequest = new EquipRequest();
        ByteBuffer   itemBuffer  = new ByteBuffer();

        itemBuffer.WriteShort(112);
        itemBuffer.WriteBytes(itemRequest.ToByteArray());
        networkManager.SendMessage(itemBuffer);
    }