public static WorldSingletonFactory CreateInstance(Position maxvalues = null) { if (_instance == null) { if (maxvalues != null) { _instance = new WorldSingletonFactory(maxvalues); } else { _instance = new WorldSingletonFactory(new Position(10, 20)); } } return(_instance); }
public Game(WorldSingletonFactory world) { _gameWorld = world; }