ensureInitialized static method

HybridWorldEventMapper ensureInitialized()

Implementation

static HybridWorldEventMapper ensureInitialized() {
  if (_instance == null) {
    MapperContainer.globals.use(_instance = HybridWorldEventMapper._());
    WorldEventMapper.ensureInitialized().addSubMapper(_instance!);
    BackgroundChangedMapper.ensureInitialized();
    ObjectsSpawnedMapper.ensureInitialized();
    ObjectsMovedMapper.ensureInitialized();
    CellHideChangedMapper.ensureInitialized();
    ObjectIndexChangedMapper.ensureInitialized();
    TeamChangedMapper.ensureInitialized();
    TeamRemovedMapper.ensureInitialized();
    MetadataChangedMapper.ensureInitialized();
    ObjectsRemovedMapper.ensureInitialized();
    TableRenamedMapper.ensureInitialized();
    TableRemovedMapper.ensureInitialized();
    NoteChangedMapper.ensureInitialized();
    NoteRemovedMapper.ensureInitialized();
  }
  return _instance!;
}