We can now read BHAV resources, create a SimAntics VM, add entities and run scripts on their threads.
Primitives implemented so far:
Expression: can retrieve and alter variables.
Sleep: pauses the thread for a number of ticks.
Notify Stack Object out of Idle: Wakes up the VMEntity whose ID matches Stack Object ID.
Included as a test is a BHAV that does some variable manipulation in between ticks.
So far there is no integration with OBJDs or with any components in the Unity scene, should probably do this once more of the logic and primitives are implemented.
This implements basic VM functionality.
We can now read BHAV resources, create a SimAntics VM, add entities and run scripts on their threads.
Primitives implemented so far:
Included as a test is a BHAV that does some variable manipulation in between ticks.
So far there is no integration with OBJDs or with any components in the Unity scene, should probably do this once more of the logic and primitives are implemented.