ensureInitialized static method

ServerWorldEventMapper ensureInitialized()

Implementation

static ServerWorldEventMapper ensureInitialized() {
  if (_instance == null) {
    MapperContainer.globals.use(_instance = ServerWorldEventMapper._());
    PlayableWorldEventMapper.ensureInitialized().addSubMapper(_instance!);
    WorldInitializedMapper.ensureInitialized();
    TeamJoinedMapper.ensureInitialized();
    TeamLeftMapper.ensureInitialized();
    ObjectsChangedMapper.ensureInitialized();
    CellShuffledMapper.ensureInitialized();
    MessageSentMapper.ensureInitialized();
    BoardTilesSpawnedMapper.ensureInitialized();
    BoardTilesChangedMapper.ensureInitialized();
    DialogOpenedMapper.ensureInitialized();
    DialogsClosedMapper.ensureInitialized();
    ImagesUpdatedMapper.ensureInitialized();
    HybridWorldEventMapper.ensureInitialized();
  }
  return _instance!;
}