Projectile launcher refactoring

This commit is contained in:
Martin 2022-12-21 08:51:39 +01:00
parent 2708c119f3
commit 9158085b58
7 changed files with 20 additions and 9 deletions

View File

@ -196,7 +196,7 @@
"_enabled": true,
"__prefab": null,
"startTime": 0,
"startXP": 200,
"startXP": 0,
"maxHpLevel": 0,
"bonusDamageLevel": 0,
"projectilePiercingLevel": 0,

View File

@ -21,7 +21,8 @@ import { EnemyManager } from "./Unit/Enemy/EnemyManager";
import { MetaUpgrades } from "./Unit/MetaUpgrades/MetaUpgrades";
import { Player, PlayerData } from "./Unit/Player/Player";
import { HaloProjectileLauncher } from "./Unit/Player/ProjectileLauncher/HaloProjectileLauncher";
import { ProjectileData, ProjectileLauncher } from "./Unit/Player/ProjectileLauncher/ProjectileLauncher";
import { ProjectileLauncher } from "./Unit/Player/ProjectileLauncher/ProjectileLauncher";
import { ProjectileData } from "./Unit/Player/ProjectileLauncher/ProjectileData";
import { WaveProjectileLauncher } from "./Unit/Player/ProjectileLauncher/WaveProjectileLauncher";
import { Upgrader } from "./Upgrades/Upgrader";
import { MetaUpgradeType } from "./Upgrades/UpgradeType";

View File

@ -4,7 +4,8 @@ import { roundToOneDecimal } from "../../../../Services/Utils/MathUtils";
import { HaloLauncherSettings } from "../../../Data/GameSettings";
import { ProjectileCollision } from "../../../Projectile/ProjectileCollision";
import { IProjectileCollisionSignaler } from "../../../Projectile/IProjectileCollisionSignaler";
import { ProjectileData, ProjectileLauncher } from "./ProjectileLauncher";
import { ProjectileLauncher } from "./ProjectileLauncher";
import { ProjectileData } from "./ProjectileData";
import { GameTimer } from "../../../../Services/GameTimer";
export class HaloProjectileLauncher implements IProjectileCollisionSignaler {

View File

@ -0,0 +1,4 @@
export class ProjectileData {
public pierces = 0;
public damage = 0;
}

View File

@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "a4a076f3-e9fa-4838-bc7c-886d9aac8f60",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@ -107,8 +107,3 @@ export class ProjectileLauncher extends Component implements IProjectileCollisio
this.projectileCollisionEvent.trigger(projectlieCollision);
}
}
export class ProjectileData {
public pierces = 0;
public damage = 0;
}

View File

@ -5,7 +5,8 @@ import { delay } from "../../../../Services/Utils/AsyncUtils";
import { WaveLauncherSettings } from "../../../Data/GameSettings";
import { IProjectileCollisionSignaler } from "../../../Projectile/IProjectileCollisionSignaler";
import { ProjectileCollision } from "../../../Projectile/ProjectileCollision";
import { ProjectileData, ProjectileLauncher } from "./ProjectileLauncher";
import { ProjectileLauncher } from "./ProjectileLauncher";
import { ProjectileData } from "./ProjectileData";
export class WaveProjectileLauncher implements IProjectileCollisionSignaler {
private currentUpgrade = 0;