public void HandleASSState(GSPacketIn packet) { bool state = packet.ReadBoolean(); AntiAddictionMgr.SetASSState(state); GamePlayer[] players = WorldMgr.GetAllPlayers(); foreach (GamePlayer p in players) { p.Out.SendAASControl(state, p.IsAASInfo, p.IsMinor); } }
public void HandleConfigState(GSPacketIn packet) { bool aSSState = packet.ReadBoolean(); bool dailyState = packet.ReadBoolean(); AwardMgr.DailyAwardState = dailyState; AntiAddictionMgr.SetASSState(aSSState); GamePlayer[] players = WorldMgr.GetAllPlayers(); foreach (GamePlayer p in players) { p.Out.SendAASControl(aSSState, p.IsAASInfo, p.IsMinor); } }
public void HandleASSState(GSPacketIn packet) { bool flag = packet.ReadBoolean(); AntiAddictionMgr.SetASSState(flag); GamePlayer[] allPlayers = WorldMgr.GetAllPlayers(); GamePlayer[] array = allPlayers; for (int i = 0; i < array.Length; i++) { GamePlayer gamePlayer = array[i]; gamePlayer.Out.SendAASControl(flag, gamePlayer.IsAASInfo, gamePlayer.IsMinor); } }