Enable closing map

This commit is contained in:
2021-03-18 23:26:21 +01:00
parent ecc420d2a5
commit 48e340947a
2 changed files with 10 additions and 0 deletions

View File

@@ -88,12 +88,20 @@ public class DefaultContext implements Context {
@SneakyThrows
@Override
public void openMap(@NonNull String mapUid) {
log.info("Opening map with UID: [{}]", mapUid);
map = mapManager.loadObject(mapUid);
mapHandler = mapManager.loadHandler(this, mapUid);
mapHandler.onOpen(this, map);
}
@Override
public void closeMap() {
log.info("Closing map");
map = null;
mapHandler = null;
}
@Override
public Entity createEntity(@NonNull String entitySetUid) {
log.info("Creating new entity with UID: [{}]", entitySetUid);