mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-03-29 03:52:37 +02:00
refactor the challenge
This commit is contained in:
@@ -10,4 +10,5 @@ public class SceneGadget extends SceneObject{
|
||||
public int state;
|
||||
public int point_type;
|
||||
public SceneBossChest boss_chest;
|
||||
public int interact_id;
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ public class SceneGroup {
|
||||
return bindings;
|
||||
}
|
||||
|
||||
public SceneGroup load(int sceneId){
|
||||
public synchronized SceneGroup load(int sceneId){
|
||||
if(loaded){
|
||||
return this;
|
||||
}
|
||||
@@ -118,6 +118,7 @@ public class SceneGroup {
|
||||
garbages = new SceneGarbage();
|
||||
if (garbagesTable.checktable().get("gadgets") != LuaValue.NIL) {
|
||||
garbages.gadgets = ScriptLoader.getSerializer().toList(SceneGadget.class, garbagesTable.checktable().get("gadgets").checktable());
|
||||
garbages.gadgets.forEach(m -> m.group = this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7,4 +7,6 @@ import lombok.ToString;
|
||||
@Setter
|
||||
public class SceneMonster extends SceneObject{
|
||||
public int monster_id;
|
||||
public int pose_id;
|
||||
public int drop_id;
|
||||
}
|
||||
Reference in New Issue
Block a user