protected override void ExecuteAfterBindings() { InjectorBinder.Bind <ProjectsHolder>().To <ProjectsHolder>().ToSingleton(); InjectorBinder.Bind <Queries>().To <Queries>().ToSingleton(); CommandBinder.Bind <StartApp>() .To <SetupCommand>() .InSequence(); }
protected override void ExecuteAfterBindings() { InjectorBinder.Bind <Queries>().To <Queries>().ToSingleton(); InjectorBinder.Bind <Database>().To <Database>().ToSingleton(); CommandBinder.Bind <StartApp>() .To <StartModules>() .InSequence(); }
protected override void ExecuteAfterBindings() { InjectorBinder.Bind <ProjectsHolder>().To <ProjectsHolder>().ToSingleton(); InjectorBinder.Bind <Queries>().To <Queries>().ToSingleton(); InjectorBinder.Bind <XmlDataLoader>().To <XmlDataLoader>().ToSingleton(); CommandBinder.Bind <StartApp>() .To <CleanUpCommand>() .To <SetupCommand>() .To <ConvertToXElementCommand>() .InSequence(); }
protected override void ExecuteAfterBindings() { InjectorBinder.Bind <EntityFactory>().To <EntityFactory>().ToSingleton(); InjectorBinder.Bind <IEntityManager>().To <EntityManager>().ToSingleton(); InjectorBinder.Bind <World>().To <World>().ToSingleton(); InjectorBinder.Bind <EntityMoving>().ToSingleton(); InjectorBinder.Bind <EntityAttacking>().ToSingleton(); InjectorBinder.Bind <EntityHealing>().ToSingleton(); CommandBinder.Bind <StartApp>() .To <SetupEntityVariantsCommand>() .To <CreateEnvironmentCommand>() .To <CreateRandomEntitiesCommand>() .InSequence(); }