- Updated to new Forge version

- Added script locking
This commit is contained in:
Stan Hebben committed 2015-06-27 08:26:38 +02:00
1 parent ea47aec970
commit 00bcf843e5
9 files changed
+93 -7

No files matched your search

@@ -94,4 +94,26 @@ public interface IGame {
*/
@ZenMethod
public String localize(String key, String lang);
/**
* Lock the game and disable reload. Recommended for distributed versions.
*
* Once locked, reload cannot be unlocked - a game restart is required to
* alter the scripts.
*/
@ZenMethod
public void lock();
/**
* Returns the lock state. True if locked.
*
* @return lock state
*/
@ZenGetter("locked")
public boolean isLocked();
/**
* Signals a modified script while in locked mode.
*/
public void signalLockError();
}