MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / BaseScene

Method BaseScene

src/main/java/field/graphics/BaseScene.java:23–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 boolean hasInitedOnce = false;
22
23 protected BaseScene() {
24 // its generally important that things get initialized as early as possible (and, furthermore, not in some random spot in the Scene update)
25 GraphicsContext.postQueueInAllContexts(() -> {
26 try (Util.ExceptionlessAutoClosable st = GraphicsContext.getContext().stateTracker.save()) {
27 GraphicsContext.put(this, setup());
28 }
29 });
30
31 }
32
33 @Override
34 public boolean perform(int pass) {

Callers

nothing calls this directly

Calls 5

getContextMethod · 0.95
putMethod · 0.95
setupMethod · 0.95
saveMethod · 0.45

Tested by

no test coverage detected