public Contexts() { enemy = new EnemyContext(); game = new GameContext(); input = new InputContext(); player = new PlayerContext(); var postConstructors = System.Linq.Enumerable.Where( GetType().GetMethods(), method => System.Attribute.IsDefined(method, typeof(Entitas.CodeGeneration.Attributes.PostConstructorAttribute)) ); foreach (var postConstructor in postConstructors) { postConstructor.Invoke(this, null); } }
public EnemyController(EnemyContext context) { this.context = context; //this.enemyCreator = new EnemyCreatorAdapter(new EnemyPartyDirector(new GrassEnvironmentFactory())); //createEnemies(); }
private void Construct(DiContainer container, SignalBus signalBus, EnemyContext enemyContext) { _container = container; _signalBus = signalBus; _enemyContext = enemyContext; }
public EnemyHear(EnemyContext enemyContext) : base(enemyContext) { }