Files
fulpstation/code/modules/procedural_mapping/mapGeneratorObj.dm
Jack Edge 7f49175967 Renames files under code/ with naughty characters
Like seriously, don't use spaces in file names, this is a codebase,
they're annoying. Hopefully Github will show these renames correctly.
2016-05-24 12:16:19 +01:00

19 lines
523 B
Plaintext

/obj/effect/landmark/mapGenerator
var/startTurfX = 0
var/startTurfY = 0
var/startTurfZ = -1
var/endTurfX = 0
var/endTurfY = 0
var/endTurfZ = -1
var/mapGeneratorType = /datum/mapGenerator/nature
var/datum/mapGenerator/mapGenerator
/obj/effect/landmark/mapGenerator/New()
..()
if(startTurfZ < 0)
startTurfZ = z
if(endTurfZ < 0)
endTurfZ = z
mapGenerator = new mapGeneratorType()
mapGenerator.defineRegion(locate(startTurfX,startTurfY,startTurfZ), locate(endTurfX,endTurfY,endTurfZ))
mapGenerator.generate()