Beispiel #1
0
        public static MapGenFloatGrid FloatGridNamed(string name)
        {
            MapGenFloatGrid var = MapGenerator.GetVar <MapGenFloatGrid>(name);

            if (var != null)
            {
                return(var);
            }
            MapGenFloatGrid mapGenFloatGrid = new MapGenFloatGrid(MapGenerator.mapBeingGenerated);

            MapGenerator.SetVar <MapGenFloatGrid>(name, mapGenFloatGrid);
            return(mapGenFloatGrid);
        }
        public static MapGenFloatGrid FloatGridNamed(string name)
        {
            MapGenFloatGrid var = MapGenerator.GetVar <MapGenFloatGrid>(name);
            MapGenFloatGrid result;

            if (var != null)
            {
                result = var;
            }
            else
            {
                MapGenFloatGrid mapGenFloatGrid = new MapGenFloatGrid(MapGenerator.mapBeingGenerated);
                MapGenerator.SetVar <MapGenFloatGrid>(name, mapGenFloatGrid);
                result = mapGenFloatGrid;
            }
            return(result);
        }