ensureInitialized static method

PlayableWorldEventMapper ensureInitialized()

Implementation

static PlayableWorldEventMapper ensureInitialized() {
  if (_instance == null) {
    MapperContainer.globals.use(_instance = PlayableWorldEventMapper._());
    WorldEventMapper.ensureInitialized().addSubMapper(_instance!);
    ServerWorldEventMapper.ensureInitialized();
    LocalWorldEventMapper.ensureInitialized();
  }
  return _instance!;
}