ensureInitialized static method

ClientWorldEventMapper ensureInitialized()

Implementation

static ClientWorldEventMapper ensureInitialized() {
  if (_instance == null) {
    MapperContainer.globals.use(_instance = ClientWorldEventMapper._());
    WorldEventMapper.ensureInitialized().addSubMapper(_instance!);
    TeamJoinRequestMapper.ensureInitialized();
    TeamLeaveRequestMapper.ensureInitialized();
    CellRollRequestMapper.ensureInitialized();
    ShuffleCellRequestMapper.ensureInitialized();
    PacksChangeRequestMapper.ensureInitialized();
    MessageRequestMapper.ensureInitialized();
    BoardsSpawnRequestMapper.ensureInitialized();
    BoardRemoveRequestMapper.ensureInitialized();
    BoardMoveRequestMapper.ensureInitialized();
    DialogCloseRequestMapper.ensureInitialized();
    ImagesRequestMapper.ensureInitialized();
    HybridWorldEventMapper.ensureInitialized();
  }
  return _instance!;
}