Ejemplo n.º 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;
                }
            }
        }
    }
Ejemplo n.º 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);
    }
Ejemplo n.º 3
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();
    }