Mapper Variable Table
A proposal for an implementation of a data structure for all mapper variables that can serve as a sync between the player's profile, the global namespace, and the mapper.
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Approved
- Assignee:
- Chris
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- Vadim Peretokin
- Completed by
- Chris
Related branches
Related bugs
Sprints
Whiteboard
A new structure could be defined to store all the map variables. This structure would have methods such as: add, set, delete which would serve to set the map's variable, but also to call another function to sync the changed variable with a user accessible namespace (a table most likely)
vadi: I support this. It would be nice later on for this to work two-way as well - changes done to the Lua variables to be synced back to C++. Metatables could assist here.
Chris: This feature has been implemented. Other than expanding the available variables, I think it is fairly complete.