예제 #1
0
 internal void FillAppUserInfo(PVPProtobuf.AppUserInfo u)
 {
     this.uid              = u.uid;
     this.avatar           = u.avatar;
     this.level            = u.level;
     this.score            = u.score;
     this.loseTimes        = u.lose_times;
     this.winTimes         = u.win_times;
     this.name             = u.name;
     this.number           = u.number;
     this.customDataNumber = u.custom_data_number;
     this.customData.Clear();
     foreach (PVPProtobuf.Pair item in u.custom_data)
     {
         this.customData [item.key] = item.value;
     }
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PVPSdk.AppUserInfo"/> class.
 /// </summary>
 internal AppUserInfo(PVPProtobuf.AppUserInfo u)
 {
     this.uid              = u.uid;
     this.avatar           = u.avatar;
     this.level            = u.level;
     this.score            = u.score;
     this.loseTimes        = u.lose_times;
     this.winTimes         = u.win_times;
     this.name             = u.name;
     this.number           = u.number;
     this.customDataNumber = u.custom_data_number;
     this.customData       = new Dictionary <string, byte[]> ();
     foreach (PVPProtobuf.Pair item in u.custom_data)
     {
         this.customData [item.key] = item.value;
     }
 }
예제 #3
0
 public LocalAppUserInfo(PVPProtobuf.AppUserInfo u) : base(u)
 {
 }