scrips can change things on the map yippie
changes
scripting
scripts can now modify maps through EngineLib
added:
Map_SetHexWalkableMap_SetTileType
yes, i made sure changes to walkability properly update the map’s pathfinding data instead of leaving it with stale information…
sanitizers
added sanitizer builds….
got ASan + UBSan working through CMake, along with presets for testing… it has helped already :)
timers
SetTimeout:
if a script created a timer and then the scene changed before it fired, the callback could still run against the old scene state.
timers now use generations, so changing/reloading a scene invalidates any timers belonging to the previous scene.
editor
fixed another map editor bug where discarding unsaved changes didn’t actually discard them… it would clear the dirty state but leave the edited map in memory…
i knew about this bug and fix for a while, but i kept on forgetting about it… but its finally done -.-
also added an Edit button to script entries in the project browser so scripts can be opened directly (launches default app it detects for the file via ur os)
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.