-
Notifications
You must be signed in to change notification settings - Fork 37
Storing Data
RealityStop edited this page Oct 21, 2020
·
1 revision
There are four ways to store data:
- on a port: has obvious downsides. It will be per execution, and the value does get stored in the port, but you'd have to mangle it and bleh.
- static internal member to the class: shared by all copies everywhere
- internal member to the class: shared by all uses of the instance of the unit
- in the Unit's data (an optional system that you won't have seen unless you look in a unit that uses it). This is stored per use.