public override void Load() { Bind <IEventHandler>().To <EventHandler>(); Bind <IEventManager>().To <EventManager>() .InSingletonScope() .OnActivation(x => { InitBooleanSet.AddItem("EventManager"); x.OnInit(InitAtom, Kernel.Get <IEventHandler>()); InitAtom.Set("EventManager", x); }); }
public override void Load() { Bind <IGraphRepository>().To <GraphRepository>(); Bind <IPathManager>().To <PathManager>() .InSingletonScope() .OnActivation(x => { InitBooleanSet.AddItem("PathManager"); x.OnInit(InitAtom); InitAtom.Set("PathManager", x); }); }
public override void Load() { Bind <IGameStateLoader>().To <GameStateLoader>(); Bind <ITimeManager>().To <TimeManager>() .InSingletonScope() .OnActivation(x => { InitBooleanSet.AddItem("TimeManager"); x.OnInit(InitAtom); InitAtom.Set("TimeManager", x); }); }
public override void Load() { Bind <IChannelHelper>().To <ChannelHelper>(); Bind <IChannelManager>().To <ChannelManager>() .InSingletonScope() .OnActivation(x => { InitBooleanSet.AddItem("ChannelManager"); x.OnInit(InitAtom); InitAtom.Set("ChannelManager", x); }); }
public override void Load() { Bind <IEntityInitializer>().To <EntityInitializer>(); Bind <IEntityRecycler>().To <EntityRecycler>().WithConstructorArgument("recycleFrequency", 0); Bind <IEntityLoader>().To <EntityLoader>(); Bind <IEntityRepository>().To <EntityRepository>(); Bind <IEntityFactory>().To <EntityFactory>(); Bind <IEntityManager>().To <EntityManager>() .InSingletonScope() .OnActivation(x => { InitBooleanSet.AddItem("EntityManager"); x.OnInit(InitAtom, Kernel.Get <IEntityInitializer>()); InitAtom.Set("EntityManager", x); }); }
public override void Load() { Bind <ILuaLoadBalancer, ILuaManager>().To <LuaManager>() .InSingletonScope() .OnActivation(x => { InitBooleanSet.AddItem("LuaManager"); x.OnInit(InitAtom); InitAtom.Set("LuaManager", x); }); Bind <ILoopProcessor>().To <GameLoopProcessor>() .InSingletonScope() .OnActivation(x => x.SegmentTimer.Interval = InitAtom.GetInt("TimeSegment")); Bind <IVariableHelper>().To <VariableHelper>(); Bind <IHelper <Action> >().To <CommandHelper>().Named("CommandHelper"); }
public override void Load() { Bind <ICommandRepository>().To <CommandRepository>(); Bind <ICommandExecutor>().To <CommandExecutor>(); Bind <ICommandInitializer>().To <CommandInitializer>(); Bind <IParser>().To <CommandParser>().Named("CommandParser"); Bind <IParser>().To <MovementParser>().Named("MovementParser"); Bind <IParser>().To <MovementParser>().Named("SocialCommandParser"); Bind <IParser>().To <MovementParser>().Named("PlayerChannelParser"); Bind <ICommandManager>().To <CommandManager>() .InSingletonScope() .OnActivation(x => { InitBooleanSet.AddItem("CommandManager"); x.OnInit(InitAtom); InitAtom.Set("CommandManager", x); }); }
public override void Load() { Bind <ITcpUserRepository>().To <TcpUserRepository>(); Bind <ITcpServer>().To <TcpServer>(); Bind <IHashRepository>().To <HashRepository>(); Bind <IHashLoader>().To <HashLoader>() .WithConstructorArgument("owner", (IEntity)null); Bind <IUserRepository>().To <GameUserRepository>().Named("GameUserRepository"); Bind <IUserRepository>().To <PendingUserRepository>().Named("PendingUserRepository"); Bind <IMenuHandler>().To <MainMenuHandler>().Named("MainMenu"); Bind <IGameUserLoader>().To <GameUserLoader>(); Bind <INetworkManager>().To <NetworkManager>() .InSingletonScope() .OnActivation(x => { InitBooleanSet.AddItem("NetworkManager"); x.OnInit(InitAtom); InitAtom.Set("NetworkManager", x); }); }
public override void Load() { Bind <ILoaderRepository>().To <LoaderRepository>(); Bind <IEntity, IStaticDataLoader>().To <StaticDataLoader>().InSingletonScope().Named("StaticDataLoader"); Bind <IStaticDataRepository>().To <StaticDataRepository>(); Bind <IDatabaseLoadBalancer, IDatabaseManager>().To <DatabaseManager>() .InSingletonScope() .OnActivation(x => { InitBooleanSet.AddItem("DatabaseManager"); x.OnInit(InitAtom); InitAtom.Set("DatabaseManager", x); }); Bind <IStaticDataManager>().To <StaticDataManager>() .InSingletonScope() .OnActivation(x => { InitBooleanSet.AddItem("StaticDataManager"); x.OnInit(InitAtom); InitAtom.Set("StaticDataManager", x); }); }