-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add events to support scene group substitution (#2413)
* Add events to support scene group substitution * make event members private with getter/setter * delete stray unused var
- Loading branch information
Showing
9 changed files
with
130 additions
and
29 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
16 changes: 16 additions & 0 deletions
16
src/main/java/emu/grasscutter/server/event/game/SceneBlockLoadedEvent.java
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,16 @@ | ||
package emu.grasscutter.server.event.game; | ||
|
||
import emu.grasscutter.server.event.types.ServerEvent; | ||
import emu.grasscutter.scripts.data.SceneBlock; | ||
import lombok.*; | ||
|
||
@Getter | ||
public final class SceneBlockLoadedEvent extends ServerEvent { | ||
private SceneBlock block; | ||
|
||
public SceneBlockLoadedEvent(SceneBlock block) { | ||
super(Type.GAME); | ||
|
||
this.block = block; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/emu/grasscutter/server/event/game/SceneMetaLoadEvent.java
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,17 @@ | ||
package emu.grasscutter.server.event.game; | ||
|
||
import emu.grasscutter.game.world.Scene; | ||
import emu.grasscutter.server.event.types.ServerEvent; | ||
import lombok.*; | ||
|
||
@Getter | ||
public final class SceneMetaLoadEvent extends ServerEvent { | ||
private Scene scene; | ||
@Setter private boolean override; | ||
|
||
public SceneMetaLoadEvent(Scene scene) { | ||
super(Type.GAME); | ||
|
||
this.scene = scene; | ||
} | ||
} |