コード例 #1
0
 public override void OnReceiveRpc(object session, Stream stream)
 {
     this.Name             = stream.ReadString();
     this.Password         = stream.ReadString();
     this.PlayerName       = stream.ReadString();
     this.PlayerProperties = DictionaryExtensions.BytesDictToProp(stream.ReadObject <Dictionary <object, object> >());
 }
コード例 #2
0
ファイル: GameRoom.cs プロジェクト: bigstupidx/Motor
 public void Deserilize(Stream stream)
 {
     this._selfProperties       = stream.ReadObject <Dictionary <object, object> >();
     this.LobbyCustomProperties = stream.ReadObject <Dictionary <object, object> >();
     //服务器传来的是包含置空的值,需要排除掉
     this.OtherCustomProperties = DictionaryExtensions.BytesDictToProp(stream.ReadObject <Dictionary <object, object> >(), false);
 }
コード例 #3
0
 internal void Deserilize(Stream stream)
 {
     this.Id               = stream.ReadInt();
     this.Name             = stream.ReadString();
     this.IsMaster         = stream.ReadBool();
     this.CustomProperties = DictionaryExtensions.BytesDictToProp(stream.ReadObject <Dictionary <object, object> >(), false);
 }
コード例 #4
0
 public override void OnReceiveRpc(object session, Stream stream)
 {
     this.Name                  = stream.ReadString();
     this.MaxPlayerCount        = stream.ReadInt();
     this.Password              = stream.ReadString();
     this.LobbyCustomProperties = stream.ReadObject <Dictionary <object, object> >();
     this.OtherCustomProperties = DictionaryExtensions.BytesDictToProp(stream.ReadObject <Dictionary <object, object> >());         //ע��Ҫ BytesDictToOrigin
     this.Token                 = stream.ReadString();
     this.PlayerName            = stream.ReadString();
     this.PlayerProperties      = DictionaryExtensions.BytesDictToProp(stream.ReadObject <Dictionary <object, object> >());    //!!!
 }
コード例 #5
0
ファイル: SetRoomOtherProp.cs プロジェクト: bigstupidx/Motor
 public override void OnReceive(ToRoomClient session, Stream stream)
 {
     this.ChangedPart = DictionaryExtensions.BytesDictToProp(stream.ReadObject <Dictionary <object, object> >());         //!!!
 }