Exemplo n.º 1
0
 private void Init(IComponentUniqueId mathUniqueId, IComponentUniqueId limitsUniqueId)
 {
     this.MathUniqueID   = mathUniqueId;
     this.LimitsUniqueID = limitsUniqueId;
     _gameEngineRelocationSubscription = ServiceLocator.GetInstance <IPubSubMediator>()
                                         .Subscribe <ComponentRelocatedEventData <Folders.EngineFolder> >(GameEngineRelocatedEventHandler);
 }
Exemplo n.º 2
0
 public GameEngineComponent(Folders.EngineFolder location,
                            IComponentUniqueId uniqueId,
                            Optional <IComponentsVersionsProvider> componentsVersionsProvider,
                            IServiceLocator serviceLocator)
     : base(location, componentsVersionsProvider, serviceLocator)
 {
     this.ComponentUniqueId = uniqueId;
 }
Exemplo n.º 3
0
        public static StringKeyValueCollection BuildGameDescriptionProperties(IComponentUniqueId componentUniqueId, string gameName, VersionNumber version, IComponentUniqueId engineUniqueId, string gamePart, IServerPath projectPath)
        {
            var properties = new StringKeyValueCollection();

            properties.Add(new StringKeyValue(AntPropertyNames.GamePartUniqueID, componentUniqueId.Value));
            properties.Add(new StringKeyValue(AntPropertyNames.GameUniqueName, gameName));
            properties.Add(new StringKeyValue(AntPropertyNames.GameVersion, version.ToString()));
            properties.Add(new StringKeyValue(AntPropertyNames.ParentGameEngineUniqueID, engineUniqueId.Value));
            properties.Add(new StringKeyValue(AntPropertyNames.GamePart, gamePart));
            properties.Add(new StringKeyValue(AntPropertyNames.ProjDir, projectPath.AsString()));
            properties.Add(new StringKeyValue(AntPropertyNames.PublishDate, DateTime.Now.ToString()));
            return(properties);
        }
Exemplo n.º 4
0
 public GameComponent(Folders.GameFolder location, IComponentUniqueId mathUniqueId, IComponentUniqueId limitsUniqueId, Optional <IComponentsVersionsProvider> componentsVersionsProvider, IServiceLocator serviceLocator)
     : base(location, componentsVersionsProvider, serviceLocator)
 {
     Init(mathUniqueId, limitsUniqueId);
 }
Exemplo n.º 5
0
 public ICoreComponent CreatePackagesComponent(PackagesFolder packagesFolder, IComponentUniqueId uniqueId)
 {
     return(new PackagesComponent(packagesFolder, uniqueId, _componentsVersionsProvider, _serviceLocator));
 }
Exemplo n.º 6
0
 public IGameEngineComponent CreateGameEngineComponent(EngineFolder engineFolder, IComponentUniqueId uniqueId)
 {
     return(new GameEngineComponent(engineFolder, uniqueId, _componentsVersionsProvider, _serviceLocator));
 }
Exemplo n.º 7
0
 public IGameComponent CreateGameComponent(Folders.GameFolder gameFolder, IComponentUniqueId mathUniqueId, IComponentUniqueId limitsUniqueId)
 {
     return(new GameComponent(gameFolder, mathUniqueId, limitsUniqueId, _componentsVersionsProvider, _serviceLocator));
 }
Exemplo n.º 8
0
 public ICoreComponent CreateCoreComponent(CoreComponentFolder coreComponentFolder, IComponentUniqueId uniqueId)
 {
     return(new CoreComponent(coreComponentFolder, uniqueId, _componentsVersionsProvider, _serviceLocator));
 }
Exemplo n.º 9
0
 public PackagesComponent(PackagesFolder location, IComponentUniqueId uniqueId, Optional <IComponentsVersionsProvider> componentsVersionsProvider, IServiceLocator serviceLocator)
     : base(location, componentsVersionsProvider, serviceLocator)
 {
     this.ComponentUniqueId = uniqueId;
 }
Exemplo n.º 10
0
 public GameEngineDeleteTransaction(GameEngineComponent gameEngine, EngineFolder location, IServiceLocator serviceLocator, IComponentUniqueId uniqueId)
     : base(gameEngine, location, serviceLocator, uniqueId)
 {
 }