Add indexed world modifications, example use in flicker lights
This commit is contained in:
@@ -90,6 +90,7 @@ shiftPSBy (pos,rot) ps = ps
|
||||
placeSpotID :: PlacementSpot -> PSType -> World -> (Int, World)
|
||||
placeSpotID ps pt w = case pt of
|
||||
PutTrigger cond -> placeNewInto triggers cond w
|
||||
PutMod modi -> plNewUpID modifications mdID modi w
|
||||
PutProp prop -> plNewUpID props pjID (mvProp p rot prop) w
|
||||
PutButton bt -> plNewUpID buttons btID (mvButton p rot bt) w
|
||||
PutFlIt itm -> plNewUpID floorItems flItID (createFlIt p rot itm) w
|
||||
|
||||
Reference in New Issue
Block a user