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; } } } }
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); }
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); }
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(); }
internal InputBuffer(InputBuffer that) : this(that.buffer, that.position, that.end - that.position) { }