public void RuleStarted(ConditionalSpawnerComponent component, GameRuleStartedEvent obj)
 {
     if (component.GameRules.Contains(obj.Rule.ID))
     {
         Spawn(component);
     }
 }
 private void OnRuleStarted(GameRuleStartedEvent args)
 {
     foreach (var spawner in EntityManager.EntityQuery <ConditionalSpawnerComponent>())
     {
         RuleStarted(spawner, args);
     }
 }
Example #3
0
    private void OnGameRuleStarted(GameRuleStartedEvent ev)
    {
        if (ev.Rule.Configuration.Id != Prototype)
        {
            return;
        }

        Started(ev.Rule.Configuration);
    }
Example #4
0
    private void OnGameRuleStarted(GameRuleStartedEvent ev)
    {
        if (ev.Rule.ID != Prototype)
        {
            return;
        }

        Started();
    }