Add automatic girder light placement for rectangular rooms
This commit is contained in:
@@ -63,6 +63,14 @@ roomRect x y xn yn = defaultRoom
|
||||
, _tileZ = 16
|
||||
} ]
|
||||
, _rmRandPSs = [psRandRanges (10,x-10) (10,y-10) (0,2*pi)]
|
||||
, _rmType = RectRoomType
|
||||
{ _numLinkEW = xn
|
||||
, _numLinkNS = yn
|
||||
, _linkGapEW = xd
|
||||
, _linkGapNS = yd
|
||||
, _rmWidth = x
|
||||
, _rmHeight = y
|
||||
}
|
||||
}
|
||||
where
|
||||
roomposat onoffpath p = RoomPos p 0 (S.singleton onoffpath) NotLink 0
|
||||
|
||||
Reference in New Issue
Block a user