-
Notifications
You must be signed in to change notification settings - Fork 16
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
Showing
5 changed files
with
55 additions
and
31 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
common/src/main/java/cn/zbx1425/mtrsteamloco/render/scripting/AbstractScriptContext.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 cn.zbx1425.mtrsteamloco.render.scripting; | ||
|
||
import vendor.cn.zbx1425.mtrsteamloco.org.mozilla.javascript.Scriptable; | ||
|
||
import java.util.concurrent.Future; | ||
|
||
public abstract class AbstractScriptContext { | ||
|
||
public Scriptable state; | ||
protected boolean created = false; | ||
public Future<?> scriptStatus; | ||
public double lastExecuteTime = 0; | ||
|
||
public abstract void renderFunctionFinished(); | ||
|
||
public abstract Object getWrapperObject(); | ||
} |
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