mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2024-12-26 03:38:58 +00:00
Projectile launcher refactoring
This commit is contained in:
parent
2708c119f3
commit
9158085b58
@ -196,7 +196,7 @@
|
|||||||
"_enabled": true,
|
"_enabled": true,
|
||||||
"__prefab": null,
|
"__prefab": null,
|
||||||
"startTime": 0,
|
"startTime": 0,
|
||||||
"startXP": 200,
|
"startXP": 0,
|
||||||
"maxHpLevel": 0,
|
"maxHpLevel": 0,
|
||||||
"bonusDamageLevel": 0,
|
"bonusDamageLevel": 0,
|
||||||
"projectilePiercingLevel": 0,
|
"projectilePiercingLevel": 0,
|
||||||
|
@ -21,7 +21,8 @@ import { EnemyManager } from "./Unit/Enemy/EnemyManager";
|
|||||||
import { MetaUpgrades } from "./Unit/MetaUpgrades/MetaUpgrades";
|
import { MetaUpgrades } from "./Unit/MetaUpgrades/MetaUpgrades";
|
||||||
import { Player, PlayerData } from "./Unit/Player/Player";
|
import { Player, PlayerData } from "./Unit/Player/Player";
|
||||||
import { HaloProjectileLauncher } from "./Unit/Player/ProjectileLauncher/HaloProjectileLauncher";
|
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 { WaveProjectileLauncher } from "./Unit/Player/ProjectileLauncher/WaveProjectileLauncher";
|
||||||
import { Upgrader } from "./Upgrades/Upgrader";
|
import { Upgrader } from "./Upgrades/Upgrader";
|
||||||
import { MetaUpgradeType } from "./Upgrades/UpgradeType";
|
import { MetaUpgradeType } from "./Upgrades/UpgradeType";
|
||||||
|
@ -4,7 +4,8 @@ import { roundToOneDecimal } from "../../../../Services/Utils/MathUtils";
|
|||||||
import { HaloLauncherSettings } from "../../../Data/GameSettings";
|
import { HaloLauncherSettings } from "../../../Data/GameSettings";
|
||||||
import { ProjectileCollision } from "../../../Projectile/ProjectileCollision";
|
import { ProjectileCollision } from "../../../Projectile/ProjectileCollision";
|
||||||
import { IProjectileCollisionSignaler } from "../../../Projectile/IProjectileCollisionSignaler";
|
import { IProjectileCollisionSignaler } from "../../../Projectile/IProjectileCollisionSignaler";
|
||||||
import { ProjectileData, ProjectileLauncher } from "./ProjectileLauncher";
|
import { ProjectileLauncher } from "./ProjectileLauncher";
|
||||||
|
import { ProjectileData } from "./ProjectileData";
|
||||||
import { GameTimer } from "../../../../Services/GameTimer";
|
import { GameTimer } from "../../../../Services/GameTimer";
|
||||||
|
|
||||||
export class HaloProjectileLauncher implements IProjectileCollisionSignaler {
|
export class HaloProjectileLauncher implements IProjectileCollisionSignaler {
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
export class ProjectileData {
|
||||||
|
public pierces = 0;
|
||||||
|
public damage = 0;
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"ver": "4.0.23",
|
||||||
|
"importer": "typescript",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "a4a076f3-e9fa-4838-bc7c-886d9aac8f60",
|
||||||
|
"files": [],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {}
|
||||||
|
}
|
@ -107,8 +107,3 @@ export class ProjectileLauncher extends Component implements IProjectileCollisio
|
|||||||
this.projectileCollisionEvent.trigger(projectlieCollision);
|
this.projectileCollisionEvent.trigger(projectlieCollision);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class ProjectileData {
|
|
||||||
public pierces = 0;
|
|
||||||
public damage = 0;
|
|
||||||
}
|
|
||||||
|
@ -5,7 +5,8 @@ import { delay } from "../../../../Services/Utils/AsyncUtils";
|
|||||||
import { WaveLauncherSettings } from "../../../Data/GameSettings";
|
import { WaveLauncherSettings } from "../../../Data/GameSettings";
|
||||||
import { IProjectileCollisionSignaler } from "../../../Projectile/IProjectileCollisionSignaler";
|
import { IProjectileCollisionSignaler } from "../../../Projectile/IProjectileCollisionSignaler";
|
||||||
import { ProjectileCollision } from "../../../Projectile/ProjectileCollision";
|
import { ProjectileCollision } from "../../../Projectile/ProjectileCollision";
|
||||||
import { ProjectileData, ProjectileLauncher } from "./ProjectileLauncher";
|
import { ProjectileLauncher } from "./ProjectileLauncher";
|
||||||
|
import { ProjectileData } from "./ProjectileData";
|
||||||
|
|
||||||
export class WaveProjectileLauncher implements IProjectileCollisionSignaler {
|
export class WaveProjectileLauncher implements IProjectileCollisionSignaler {
|
||||||
private currentUpgrade = 0;
|
private currentUpgrade = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user