Beispiel #1
0
// read from proto
        public void FromProto(netproto.PlayerInfo pdata)
        {
            if (pdata.serverTime != null)
            {
                this.serverTime        = ProtoUtil.OptVal(pdata.serverTime);
                this.isDirtyserverTime = true;
            }
            if (pdata.serverName != null)
            {
                this.serverName        = ProtoUtil.OptVal(pdata.serverName);
                this.isDirtyserverName = true;
            }
        }
Beispiel #2
0
 public void response(netproto.PlayerInfo playerInfo)
 {
     Player.playerInfo.FromProto(playerInfo);
     SysLog.debug("merge playerInfo");
 }