LogicEditor | Refactor StaticValueVault
Summary
The StaticValueVault
allows us to store string values for arbitrary attributes persistent for a session, regardless of scene transitions. The current solution implements a single node for storing and retrieving these key value pairs.
Problem or need
- The naming of the nodes/methods is not easily understood
- The setup realizes three separate things:
- Storage of a key value pair
- Retrieval of a key value pair
- Check if the value of a retrieved attribute matches a checkValue
- It would be easier to understand if these use cases are separated out into their own nodes
Proposed solution
- Refactor
StaticValueVault
intoStoreNamedAttribute
andRetrieveNamedAttribute
- In this case,
RetrieveNamedAttribute
still does two things, retrieving an attribute and comparing checkValue and storedValue. This could be further abstracted at a later stage.
Alternatives considered
N/A