public void Setup() { _components = IoCManager.Resolve <IComponentFactory>(); _components.RegisterClass <HotReloadTestComponentOne>(); _components.RegisterClass <HotReloadTestComponentTwo>(); IoCManager.Resolve <ISerializationManager>().Initialize(); _prototypes = (PrototypeManager)IoCManager.Resolve <IPrototypeManager>(); _prototypes.LoadString(InitialPrototypes); _prototypes.Resync(); _maps = IoCManager.Resolve <IMapManager>(); _entities = IoCManager.Resolve <IEntityManager>(); }
public void Setup() { _components = IoCManager.Resolve <IComponentFactory>(); _components.RegisterClass <HotReloadTestOneComponent>(); _components.RegisterClass <HotReloadTestTwoComponent>(); _components.GenerateNetIds(); IoCManager.Resolve <ISerializationManager>().Initialize(); _prototypes = (PrototypeManager)IoCManager.Resolve <IPrototypeManager>(); _prototypes.RegisterType(typeof(EntityPrototype)); _prototypes.LoadString(InitialPrototypes); _prototypes.Resync(); _maps = IoCManager.Resolve <IMapManager>(); _entities = IoCManager.Resolve <IEntityManager>(); }