예제 #1
0
        private void Instance_ValuablesAdded(object sender, LocationValuablesCollectionManagerEventArgs e)
        {
            foreach (var lvc in e.LocationValuables)
            {
                AddSpawnItem(lvc.ActivationContext.InstanceId, lvc.SpawnItem);

                m_activationContexts[lvc.ActivationContext.InstanceId] = lvc.ActivationContext;
            }

            ProcessValuables(e.LocationValuables);
        }
예제 #2
0
        private void Instance_ValuablesRemoved(object sender, LocationValuablesCollectionManagerEventArgs e)
        {
            foreach (var lvc in e.LocationValuables)
            {
                var spawnLocations = GetLocationsForSpawnItem(lvc.ActivationContext.InstanceId);

                if (spawnLocations != null)
                {
                    foreach (var location in spawnLocations)
                    {
                        m_triggerPool.StopWatching(GetPoolRequestId(lvc.ActivationContext.InstanceId, location));
                    }
                }

                m_activationContexts.Remove(lvc.ActivationContext.InstanceId);

                //m_computedResults.RemoveAll(lvc.ActivationContext.InstanceId);

                RemoveSpawnItem(lvc.ActivationContext.InstanceId, lvc.SpawnItem, true);
            }
        }
예제 #3
0
 private void Instance_LocationsAdded(object sender, LocationValuablesCollectionManagerEventArgs e)
 {
 }