Beispiel #1
0
        public void AddCapturePoint(OPvPCapturePoint cp)
        {
            if (m_capturePoints.ContainsKey(cp.m_capturePointSpawnId))
            {
                Log.outError(LogFilter.Outdoorpvp, "OutdoorPvP.AddCapturePoint: CapturePoint {0} already exists!", cp.m_capturePointSpawnId);
            }

            m_capturePoints[cp.m_capturePointSpawnId] = cp;
        }
Beispiel #2
0
        public override void OnGameObjectRemove(GameObject go)
        {
            if (go.GetGoType() != GameObjectTypes.ControlZone)
            {
                return;
            }

            OPvPCapturePoint cp = GetCapturePoint(go.GetSpawnId());

            if (cp != null)
            {
                cp.m_capturePoint = null;
            }
        }