void AutoCreateAttributedEntities() { if (ShouldAutoCreateAttributedEntities == false) { return; } InjectionSystem.AutoCreateEntities(this); }
public void RegisterBindings() { foreach (var kvp in _behaviours) { InjectionSystem.AddBehaviourToSystem(kvp.Value, kvp.Key); } foreach (var kvp in _signals) { InjectionSystem.AddSignalToSystem(kvp.Value, kvp.Key); } foreach (var kvp in _clouds) { InjectionSystem.RegisterCloudToSystem(kvp.Value, kvp.Key); } foreach (var kvp in _interfaces) { InjectionSystem.RegisterInterfaceToSystem(kvp.Value, kvp.Key); } _state = State.Registered; }
public void InjectIntoBindings() { foreach (var kvp in _behaviours) { if ((kvp.Value as BaseInjectBehaviour).ConsumeInject) { InjectionSystem.InjectBehaviourInner(kvp.Value as BaseInjectBehaviour); } } foreach (var kvp in _clouds) { InjectionSystem.InjectBehaviourInner(kvp.Value); } foreach (var kvp in _signals) { InjectionSystem.InjectSignal(kvp.Value); } _state = State.Injected; }