-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(world): improved EntityAirSupplyComponent
- Loading branch information
Showing
9 changed files
with
133 additions
and
22 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { WorldEvent } from "../enums"; | ||
|
||
import { WorldEventSignal } from "./signal"; | ||
|
||
import type { Player } from "../player"; | ||
|
||
class PlayerStartSwimmingSignal extends WorldEventSignal { | ||
public static readonly identifier = WorldEvent.PlayerStartSwimming; | ||
|
||
/** | ||
* The player that stopped swimming. | ||
*/ | ||
public readonly player: Player; | ||
|
||
/** | ||
* Creates a new player stopped swimming signal. | ||
*/ | ||
public constructor(player: Player) { | ||
super(player.dimension.world); | ||
this.player = player; | ||
} | ||
} | ||
|
||
export { PlayerStartSwimmingSignal }; |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { WorldEvent } from "../enums"; | ||
|
||
import { WorldEventSignal } from "./signal"; | ||
|
||
import type { Player } from "../player"; | ||
|
||
class PlayerStopSwimmingSignal extends WorldEventSignal { | ||
public static readonly identifier = WorldEvent.PlayerStopSwimming; | ||
|
||
/** | ||
* The player that started swimming. | ||
*/ | ||
public readonly player: Player; | ||
|
||
/** | ||
* Creates a new player started swimming signal. | ||
*/ | ||
public constructor(player: Player) { | ||
super(player.dimension.world); | ||
this.player = player; | ||
} | ||
} | ||
|
||
export { PlayerStopSwimmingSignal }; |
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