PointerAgent: fire pointer pickup/drop scripts in carry/drop, not in event handling...
[openc2e.git] / ser / s_bytecode.h
blobff1192c94c9b651246a272f50bda9b7cb23eb697
1 #ifndef SER_BYTECODE_H
2 #define SER_BYTECODE_H 1
4 #include "bytecode.h"
5 #include "ser/s_caosVar.h"
6 #include "serialization.h"
7 #include "dialect.h"
9 BOOST_CLASS_IMPLEMENTATION(caosOp, boost::serialization::object_serializable);
10 BOOST_CLASS_TRACKING(caosOp, boost::serialization::track_never);
11 SAVE(caosOp) {
12 uint32_t op = obj.opcode | ((obj.argument + 0x800000) << 8);
13 ar & op & obj.traceindex;
16 LOAD(caosOp) {
17 uint32_t op;
18 ar & op & obj.traceindex;
19 obj.opcode = op & 0xFF;
20 obj.argument = (op >> 8) - 0x800000;
23 #undef SER_xVxx
25 #endif