예제 #1
0
 private void AddBattleBufferAndFlags(GameClient client)
 {
     double[] actionParams = new double[]
     {
         85200.0,
         2000800.0
     };
     client.ClientData.BattleNameStart = TimeUtil.NOW();
     client.ClientData.BattleNameIndex = 1;
     Global.RemoveBufferData(client, 24);
     Global.RemoveBufferData(client, 26);
     Global.RemoveBufferData(client, 25);
     Global.UpdateBufferData(client, BufferItemTypes.PKKingBuffer, actionParams, 0, true);
     GameManager.DBCmdMgr.AddDBCmd(10059, string.Format("{0}:{1}:{2}", client.ClientData.RoleID, client.ClientData.BattleNameStart, client.ClientData.BattleNameIndex), null, client.ServerId);
     GameManager.ClientMgr.NotifyRoleBattleNameInfo(Global._TCPManager.MySocketListener, Global._TCPManager.TcpOutPacketPool, client);
     GameManager.ClientMgr.UpdateBattleNum(client, 1, false);
     HuodongCachingMgr.UpdateHeFuPKKingRoleID(client.ClientData.RoleID);
     EventLogManager.AddTitleEvent(client, 1, (int)actionParams[0], "pkKing");
 }