add support to SDLBackend for rendering 24bit data
[openc2e.git] / ser / s_caosVM.h
blob5cf85b2b4c73a39a748fc2f51448974db9247611
1 #ifndef SER_CAOSVM_H
2 #define SER_CAOSVM_H 1
4 #include "ser/s_caosScript.h"
5 #include "ser/s_AgentRef.h"
6 #include "serialization.h"
7 #include "caosScript.h"
10 WRAP_SERIALIZE(vmStackItem);
11 SER_PROTO(o_serialize, vmStackItem, ) {
12 ar & obj.type;
13 ar & obj.i_val;
14 ar & obj.p_val;
15 ar & obj.bytestring;
18 WRAP_SERIALIZE(callStackItem);
19 SER_PROTO(o_serialize, callStackItem, ) {
20 ar & obj.valueStack;
21 ar & obj.nip;
24 WRAP_SERIALIZE(caosVM);
25 SER_PROTO(o_serialize, caosVM, ) {
26 ar & obj.trace;
28 // FIXME: blocking
29 ar & obj.currentscript;
30 ar & obj.nip & obj.cip;
32 ar & obj.inst & obj.lock & obj.stop_loop;
33 ar & obj.timeslice;
35 ar & obj.valueStack & obj.callStack;
37 // Don't serialize I/O stuff
38 ar & obj.var;
39 ar & obj._p_;
40 ar & obj.targ & obj.owner;
41 ar & obj._it_ & obj.from;
42 ar & obj.part;
43 ar & obj.camera;
44 ar & obj.result; // XXX: is this needed?
47 #endif