Ejemplo n.º 1
0
    public Core SpawnCore(CoreParameters _coreSpawnParameters)
    {
        Core _spawnedCore = InstantiateModule.InstantiateObjectWithScript <Core>(PrefabCollection.Core);

        _spawnedCore.SetupParameters(_coreSpawnParameters);
        return(_spawnedCore);
    }
Ejemplo n.º 2
0
 public void SetupParameters(CoreParameters _coreParameters)
 {
     Setup();
     HealthPoints    = _coreParameters.Hp;
     BomberSpawnRate = _coreParameters.BomberSpawnRate;
     MeteorSpawnRate = _coreParameters.MeteorSpawnRate;
     objectRadius    = 5f;
 }
Ejemplo n.º 3
0
 /// <summary>
 ///     Creates a new <see cref="RelationalTypeMappingParameters" /> parameter object with the given
 ///     converter composed with any existing converter and set on the new parameter object.
 /// </summary>
 /// <param name="converter"> The converter. </param>
 /// <returns> The new parameter object. </returns>
 public RelationalTypeMappingParameters WithComposedConverter([CanBeNull] ValueConverter converter)
 => new RelationalTypeMappingParameters(
     CoreParameters.WithComposedConverter(converter),
     StoreType,
     DbType,
     Unicode,
     Size,
     FixedLength);
Ejemplo n.º 4
0
    public CoreParameters CreateCoreParameters(float _hp, float _meteorSpawnRate, float _bomberSpawnRate)
    {
        CoreParameters theCoreBlueprint = new CoreParameters();

        theCoreBlueprint.Hp = _hp;
        theCoreBlueprint.MeteorSpawnRate = _meteorSpawnRate;
        theCoreBlueprint.BomberSpawnRate = _bomberSpawnRate;
        return(theCoreBlueprint);
    }
Ejemplo n.º 5
0
 /// <summary>
 ///     Creates a new <see cref="RelationalTypeMappingParameters" /> parameter object with the given
 ///     converter composed with any existing converter and set on the new parameter object.
 /// </summary>
 /// <param name="converter"> The converter. </param>
 /// <returns> The new parameter object. </returns>
 public RelationalTypeMappingParameters WithComposedConverter([CanBeNull] ValueConverter converter)
 => new RelationalTypeMappingParameters(
     CoreParameters.WithComposedConverter(converter),
     StoreType,
     StoreTypePostfix,
     DbType,
     Unicode,
     Size,
     FixedLength,
     Precision,
     Scale,
     PrecisionAndScaleOverriden);
Ejemplo n.º 6
0
 => new RelationalTypeMappingParameters(
     CoreParameters,
     mappingInfo.StoreTypeName ?? StoreType,
Ejemplo n.º 7
0
    public Stage CreateStage(Vector3 _playerFollowLocation, float stageDuration, float meteorSpawnTimeStep, float bomberSpawnTimeStep, CoreParameters passCoreParameters)
    {
        Stage newCreatedStage = new Stage();

        newCreatedStage.isItCoreStage     = true;
        newCreatedStage.FollowPosition    = _playerFollowLocation;
        newCreatedStage.DurationOfStage   = stageDuration;
        newCreatedStage.MeteorsSpawnSpeed = meteorSpawnTimeStep;
        newCreatedStage.BombersSpawnSpeed = bomberSpawnTimeStep;
        newCreatedStage.CoreParameters    = passCoreParameters;
        return(newCreatedStage);
    }