mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-15 08:25:21 +01:00
Implement lazy loading of scripts when they enter a new block
This commit is contained in:
@@ -5,6 +5,8 @@ import java.util.List;
|
||||
import emu.grasscutter.utils.Position;
|
||||
|
||||
public class SceneGroup {
|
||||
public transient int block_id; // Not an actual variable in the scripts but we will keep it here for reference
|
||||
|
||||
public int id;
|
||||
public int refresh_id;
|
||||
public Position pos;
|
||||
@@ -14,4 +16,14 @@ public class SceneGroup {
|
||||
public List<SceneTrigger> triggers;
|
||||
public List<SceneSuite> suites;
|
||||
public SceneInitConfig init_config;
|
||||
|
||||
private transient boolean isLoaded; // Not an actual variable in the scripts either
|
||||
|
||||
public boolean isLoaded() {
|
||||
return isLoaded;
|
||||
}
|
||||
|
||||
public boolean setLoaded(boolean loaded) {
|
||||
return loaded;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user