forked from SteamWar/SteamWar
Add investigation support to schematics and refine rejection handling
This commit is contained in:
@@ -466,6 +466,16 @@ public class SchematicNode {
|
||||
setConfig(ConfigFlags.IS_PREPARED, prepared);
|
||||
}
|
||||
|
||||
public boolean isInvestigation() {
|
||||
return getConfig(ConfigFlags.INVESTIGATION);
|
||||
}
|
||||
|
||||
public void setInvestigation(boolean investigation) {
|
||||
if (isDir())
|
||||
throw new SecurityException("Is Directory");
|
||||
setConfig(ConfigFlags.INVESTIGATION, investigation);
|
||||
}
|
||||
|
||||
public boolean getConfig(ConfigFlags flag) {
|
||||
return (config & (1 << flag.ordinal())) != 0;
|
||||
}
|
||||
@@ -629,6 +639,7 @@ public class SchematicNode {
|
||||
public static enum ConfigFlags {
|
||||
REPLACE_COLOR,
|
||||
ALLOW_REPLAY,
|
||||
IS_PREPARED
|
||||
IS_PREPARED,
|
||||
INVESTIGATION,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user