Beispiel #1
0
        public MissionLogEventInfluenceAreaBoundary(MissionLogEventHeader header)
            : base(header)
        {
            var id           = RawParameters.GetInt("AID");
            var existingArea = Server.Areas[id];

            if (existingArea != null)
            {
                Server.Areas[id].SetBoundaries(RawParameters.GetVectorArray("BP"));
                Area = Server.Areas[id];
            }
            else
            {
                Area = new Area(RawParameters.GetVectorArray("BP"))
                {
                    Id = RawParameters.GetInt("AID")
                };
            }
        }