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> >()); }
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); }
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); }
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> >()); //!!! }
public override void OnReceive(ToRoomClient session, Stream stream) { this.ChangedPart = DictionaryExtensions.BytesDictToProp(stream.ReadObject <Dictionary <object, object> >()); //!!! }