| | |
| | | public class PlayerBaseData
|
| | | {
|
| | |
|
| | | PartDataBuf mainServerDataBuf = new PartDataBuf();//
|
| | |
|
| | | public string AccID; //_KEY_i_帐号名, 该角色所在的帐号的用户名
|
| | | public uint PlayerID; //_IDT_
|
| | | public string PlayerName; //size = 14
|
| | |
| | | godWeaponLV_2 = (int)_serverInfo.ExAttr16;
|
| | | godWeaponLV_3 = (int)_serverInfo.ExAttr17;
|
| | | godWeaponLV_4 = (int)_serverInfo.ExAttr18;
|
| | |
|
| | | if (_serverInfo.socketType == GameNetSystem.SocketType.Main)
|
| | | {
|
| | | mainServerDataBuf.PlayerName = PlayerName;
|
| | | mainServerDataBuf.MapID = MapID;
|
| | | mainServerDataBuf.FBID = FBID;
|
| | | mainServerDataBuf.dungeonLineId = dungeonLineId;
|
| | | mainServerDataBuf.PosX = PosX;
|
| | | mainServerDataBuf.PosY = PosY;
|
| | | mainServerDataBuf.HP = HP;
|
| | | }
|
| | | }
|
| | |
|
| | | public void UpdateData(HC103_tagMCExitCrossRealmRefresh serverInfo)
|
| | | public void ApplyMainServerDataBuf()
|
| | | {
|
| | | PlayerName = serverInfo.PlayerName;
|
| | | MapID = serverInfo.MapID;
|
| | | FBID = serverInfo.FBID;
|
| | | dungeonLineId = serverInfo.FuncLineID;
|
| | | PosX = serverInfo.PosX;
|
| | | PosY = serverInfo.PosY;
|
| | | HP = serverInfo.HP;
|
| | | PlayerName = mainServerDataBuf.PlayerName;
|
| | | MapID = mainServerDataBuf.MapID;
|
| | | FBID = mainServerDataBuf.FBID;
|
| | | dungeonLineId = mainServerDataBuf.dungeonLineId;
|
| | | PosX = mainServerDataBuf.PosX;
|
| | | PosY = mainServerDataBuf.PosY;
|
| | | HP = mainServerDataBuf.HP;
|
| | | }
|
| | |
|
| | | public class PartDataBuf
|
| | | {
|
| | | public string PlayerName;
|
| | | public ushort MapID;
|
| | | public byte FBID;
|
| | | public int dungeonLineId;
|
| | | public ushort PosX;
|
| | | public ushort PosY;
|
| | | public uint HP;
|
| | | }
|
| | |
|
| | | }
|