-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c60f64
commit ef38f7f
Showing
31 changed files
with
180 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { Unit } from "../../handles/Unit.js"; | ||
import { GetEventTargetUnit } from "../../utils/common.js"; | ||
import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; | ||
import { fromHandleHolderSoft } from "../../utils/FromHandleHolder.js"; | ||
|
||
export class UnitEventAcquiredTarget extends TriggerUnitEvent<"acquiredTarget"> { | ||
readonly target: Unit; | ||
constructor() { | ||
super("acquiredTarget"); | ||
this.target = GetEventTargetUnit(); | ||
this.target = fromHandleHolderSoft(GetEventTargetUnit()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { Unit } from "../../handles/Unit.js"; | ||
import { GetAttacker } from "../../utils/common.js"; | ||
import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; | ||
import { fromHandleHolderSoft } from "../../utils/FromHandleHolder.js"; | ||
|
||
export class UnitEventAttacked extends TriggerUnitEvent<"attacked"> { | ||
readonly attacker: Unit; | ||
constructor() { | ||
super("attacked"); | ||
this.attacker = GetAttacker(); | ||
this.attacker = fromHandleHolderSoft(GetAttacker()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { Unit } from "../../handles/Unit.js"; | ||
import { GetConstructedStructure } from "../../utils/common.js"; | ||
import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; | ||
import { fromHandleHolderSoft } from "../../utils/FromHandleHolder.js"; | ||
|
||
export class UnitEventConstructFinish extends TriggerUnitEvent<"constructFinish"> { | ||
readonly constructedStructure: Unit; | ||
constructor() { | ||
super("constructFinish"); | ||
this.constructedStructure = GetConstructedStructure(); | ||
this.constructedStructure = fromHandleHolderSoft(GetConstructedStructure()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { Unit } from "../../handles/Unit.js"; | ||
import { GetKillingUnit } from "../../utils/common.js"; | ||
import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; | ||
import { fromHandleHolderSoft } from "../../utils/FromHandleHolder.js"; | ||
|
||
export class UnitEventDeath extends TriggerUnitEvent<"death"> { | ||
readonly killingUnit: Unit; | ||
constructor() { | ||
super("death"); | ||
this.killingUnit = GetKillingUnit(); | ||
this.killingUnit = fromHandleHolderSoft(GetKillingUnit()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { Player } from "../../handles/Player.js"; | ||
import { GetEventDetectingPlayer } from "../../utils/common.js"; | ||
import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; | ||
import { fromHandleHolderSoft } from "../../utils/FromHandleHolder.js"; | ||
|
||
export class UnitEventDetected extends TriggerUnitEvent<"detected"> { | ||
readonly detectingPlayer: Player; | ||
constructor() { | ||
super("detected"); | ||
this.detectingPlayer = GetEventDetectingPlayer(); | ||
this.detectingPlayer = fromHandleHolderSoft(GetEventDetectingPlayer()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { Item } from "../../handles/Item.js"; | ||
import { GetManipulatedItem } from "../../utils/common.js"; | ||
import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; | ||
import { fromHandleHolderSoft } from "../../utils/FromHandleHolder.js"; | ||
|
||
export class UnitEventDropItem extends TriggerUnitEvent<"dropItem"> { | ||
readonly droppedItem: Item; | ||
constructor() { | ||
super("dropItem"); | ||
this.droppedItem = GetManipulatedItem(); | ||
this.droppedItem = fromHandleHolderSoft(GetManipulatedItem()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { Unit } from "../../handles/Unit.js"; | ||
import { GetRevivableUnit } from "../../utils/common.js"; | ||
import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; | ||
import { fromHandleHolderSoft } from "../../utils/FromHandleHolder.js"; | ||
|
||
export class UnitEventHeroRevivable extends TriggerUnitEvent<"heroRevivable"> { | ||
readonly revivableUnit: Unit; | ||
constructor() { | ||
super("heroRevivable"); | ||
this.revivableUnit = GetRevivableUnit(); | ||
this.revivableUnit = fromHandleHolderSoft(GetRevivableUnit()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { Unit } from "../../handles/Unit.js"; | ||
import { GetRevivingUnit } from "../../utils/common.js"; | ||
import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; | ||
import { fromHandleHolderSoft } from "../../utils/FromHandleHolder.js"; | ||
|
||
export class UnitEventHeroReviveCancel extends TriggerUnitEvent<"heroReviveCancel"> { | ||
readonly revivingUnit: Unit; | ||
constructor() { | ||
super("heroReviveCancel"); | ||
this.revivingUnit = GetRevivingUnit(); | ||
this.revivingUnit = fromHandleHolderSoft(GetRevivingUnit()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { Unit } from "../../handles/Unit.js"; | ||
import { GetRevivingUnit } from "../../utils/common.js"; | ||
import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; | ||
import { fromHandleHolderSoft } from "../../utils/FromHandleHolder.js"; | ||
|
||
export class UnitEventHeroReviveFinish extends TriggerUnitEvent<"heroReviveFinish"> { | ||
readonly revivingUnit: Unit; | ||
constructor() { | ||
super("heroReviveFinish"); | ||
this.revivingUnit = GetRevivingUnit(); | ||
this.revivingUnit = fromHandleHolderSoft(GetRevivingUnit()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { Unit } from "../../handles/Unit.js"; | ||
import { GetRevivingUnit } from "../../utils/common.js"; | ||
import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; | ||
import { fromHandleHolderSoft } from "../../utils/FromHandleHolder.js"; | ||
|
||
export class UnitEventHeroReviveStart extends TriggerUnitEvent<"heroReviveStart"> { | ||
readonly revivingUnit: Unit; | ||
constructor() { | ||
super("heroReviveStart"); | ||
this.revivingUnit = GetRevivingUnit(); | ||
this.revivingUnit = fromHandleHolderSoft(GetRevivingUnit()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import { GetLearnedSkill, GetLearnedSkillLevel } from "../../utils/common.js"; | ||
import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; | ||
import { fromHandleHolderSoft } from "../../utils/FromHandleHolder.js"; | ||
|
||
export class UnitEventHeroSkill extends TriggerUnitEvent<"heroSkill"> { | ||
readonly learnedSkill: number; | ||
readonly learnedSkillLevel: number; | ||
constructor() { | ||
super("heroSkill"); | ||
this.learnedSkill = GetLearnedSkill(); | ||
this.learnedSkillLevel = GetLearnedSkillLevel(); | ||
this.learnedSkillLevel = fromHandleHolderSoft(GetLearnedSkillLevel()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import { GetIssuedOrderId } from "../../utils/common.js"; | ||
import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; | ||
import { fromHandleHolderSoft } from "../../utils/FromHandleHolder.js"; | ||
|
||
export class UnitEventIssuedOrder extends TriggerUnitEvent<"issuedOrder"> { | ||
readonly issuedOrderId: number; | ||
constructor() { | ||
super("issuedOrder"); | ||
this.issuedOrderId = GetIssuedOrderId(); | ||
this.issuedOrderId = fromHandleHolderSoft(GetIssuedOrderId()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
import { GetIssuedOrderId, GetOrderPointX, GetOrderPointLoc, GetOrderPointY, Location } from "../../utils/common.js"; | ||
import { GetIssuedOrderId, GetOrderPointX, GetOrderPointY } from "../../utils/common.js"; | ||
import { TriggerUnitEvent } from "./TriggerUnitEvent.js"; | ||
|
||
export class UnitEventIssuedPointOrder extends TriggerUnitEvent<"issuedPointOrder"> { | ||
readonly issuedOrderId: number; | ||
readonly orderPointX: number; | ||
readonly orderPointY: number; | ||
readonly orderPointLoc: Location; | ||
constructor() { | ||
super("issuedPointOrder"); | ||
this.issuedOrderId = GetIssuedOrderId(); | ||
this.orderPointX = GetOrderPointX(); | ||
this.orderPointY = GetOrderPointY(); | ||
this.orderPointLoc = GetOrderPointLoc(); | ||
} | ||
} |
Oops, something went wrong.