Пример #1
0
    void OnLobbyChatMsg(LobbyChatMsg_t lobbyChatMsg_T)
    {
        CSteamID Sayer;

        byte[]         hua = new byte[4096];
        EChatEntryType ctype;

        if (Sender.roomid == (CSteamID)lobbyChatMsg_T.m_ulSteamIDLobby)
        {
            SteamMatchmaking.GetLobbyChatEntry(Sender.roomid, (int)lobbyChatMsg_T.m_iChatID, out Sayer, hua, hua.Length, out ctype);
            Bond.IO.Safe.InputBuffer inputBuffer = new Bond.IO.Safe.InputBuffer(hua);
            Bond.Protocols.CompactBinaryReader <Bond.IO.Safe.InputBuffer> compactBinaryReader = new Bond.Protocols.CompactBinaryReader <Bond.IO.Safe.InputBuffer>(inputBuffer);
            theword = Deserialize <UserWord> .From(compactBinaryReader);

            foreach (GameObject a in ULS.UDs)
            {
                if (a.GetComponent <UserDetailScript>().ido(Sayer))
                {
                    a.GetComponent <UserDetailScript>().ClassWork(theword.myWord);
                    theword = null;
                    return;
                }
            }
        }
    }
Пример #2
0
    void SetSD()
    {
        Bond.IO.Safe.InputBuffer ib2 = new Bond.IO.Safe.InputBuffer(rcbuffer);
        Bond.Protocols.CompactBinaryReader <Bond.IO.Safe.InputBuffer> cbr = new Bond.Protocols.CompactBinaryReader <Bond.IO.Safe.InputBuffer>(ib2);
        SkillData CDrc = Deserialize <SkillData> .From(cbr);

        SetTempAndCheck(CDrc.cNum, CDrc.SLs);
    }
Пример #3
0
    Data2S bondbfd(byte[] bRC)
    {
        Bond.IO.Safe.InputBuffer ib = new Bond.IO.Safe.InputBuffer(bRC);
        Bond.Protocols.FastBinaryReader <Bond.IO.Safe.InputBuffer> fbr = new Bond.Protocols.FastBinaryReader <Bond.IO.Safe.InputBuffer>(ib);
        Data2S datarc = Deserialize <Data2S> .From(fbr);

        return(datarc);
    }
Пример #4
0
    public void EndBattle(int pos)
    {
        //NowState = GameState.Learning;
        Bond.IO.Safe.InputBuffer ib2 = new Bond.IO.Safe.InputBuffer(rcbuffer);
        Bond.Protocols.CompactBinaryReader <Bond.IO.Safe.InputBuffer> cbr = new Bond.Protocols.CompactBinaryReader <Bond.IO.Safe.InputBuffer>(ib2);
        Src[pos] = Deserialize <EndData> .From(cbr);

        SLtb[pos] = true;
        Debug.Log("End Message " + pos + "Received And Set");
        EndingCompare();
    }
Пример #5
0
 internal InputBuffer(InputBuffer that)
     : this(that.buffer, that.position, that.end - that.position)
 {
 }