ILLUSIONS: Add SequenceOpcodes skeleton class
This commit is contained in:
parent
3fc592df49
commit
18540a5e38
9 changed files with 181 additions and 37 deletions
|
@ -28,6 +28,28 @@
|
|||
|
||||
namespace Illusions {
|
||||
|
||||
// OpCall
|
||||
|
||||
void OpCall::skip(uint size) {
|
||||
_code += size;
|
||||
}
|
||||
|
||||
byte OpCall::readByte() {
|
||||
return *_code++;
|
||||
}
|
||||
|
||||
int16 OpCall::readSint16() {
|
||||
int16 value = READ_LE_UINT16(_code);
|
||||
_code += 2;
|
||||
return value;
|
||||
}
|
||||
|
||||
uint32 OpCall::readUint32() {
|
||||
uint32 value = READ_LE_UINT32(_code);
|
||||
_code += 4;
|
||||
return value;
|
||||
}
|
||||
|
||||
// ScriptOpcodes
|
||||
|
||||
ScriptOpcodes::ScriptOpcodes(IllusionsEngine *vm)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue