示例#1
0
        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);
        }
示例#2
0
 public Game(WorldSingletonFactory world)
 {
     _gameWorld = world;
 }