mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 18:02:57 +00:00
initial commit - cross reference with 5th port - obviously has compile errors
This commit is contained in:
19
code/modules/procedural_mapping/mapGeneratorObj.dm
Normal file
19
code/modules/procedural_mapping/mapGeneratorObj.dm
Normal file
@@ -0,0 +1,19 @@
|
||||
/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()
|
||||
Reference in New Issue
Block a user