public MissionLogEventPlayerLeave(MissionLogEventHeader header) : base(header) { NickGuid = RawParameters.GetGuid("USERNICKID"); LoginGuid = RawParameters.GetGuid("USERID"); Player = Server.Players.FindPlayerByGuid(NickGuid); }
public MissionLogEventPlaneSpawn(MissionLogEventHeader header) : base(header) { GameObjectItem purpose; GameInfo.ObjectsClassification.TryGetValue(RawParameters.GetString("TYPE"), out purpose); if (purpose == null) { purpose = new GameObjectItem(GameObjectClass.Other, "Unknown"); } Player = new Player() { Id = RawParameters.GetInt("PID"), Country = new Country(RawParameters.GetInt("COUNTRY")), IsInAir = RawParameters.GetInt("INAIR") == 0 ? true : false, IsOnline = true, LoginId = RawParameters.GetGuid("LOGIN"), NickId = RawParameters.GetGuid("IDS"), NickName = RawParameters.GetString("NAME"), Plane = new Plane(RawParameters.GetInt("PLID"), RawParameters.GetString("TYPE")) { Bullets = RawParameters.GetInt("BUL"), Bombs = RawParameters.GetInt("BOMB"), Classification = GameObjectClass.Plane.ToString("g"), Fuel = RawParameters.GetDouble("FUEL"), Payload = RawParameters.GetString("PAYLOAD"), Purpose = purpose == null ? null : purpose.Purpose, Shells = RawParameters.GetInt("SH"), Skin = RawParameters.GetString("SKIN"), WeaponMods = RawParameters.GetString("WM"), }, BotPilot = new GameObject(RawParameters.GetInt("PID"), "BotPilot"), SortieId = EventID, }; Player.CoalitionIndex = Server.GetCoalitionIndex(Player.Country); Server.Players.PlayerSpawn(Player); }
public MissionLogEventPlayerJoin(MissionLogEventHeader header) : base(header) { NickGuid = RawParameters.GetGuid("USERNICKID"); LoginGuid = RawParameters.GetGuid("USERID"); }