ILLUSIONS: Add SequenceOpcodes skeleton class

This commit is contained in:
johndoe123 2014-03-18 16:17:38 +01:00 committed by Eugene Sandulenko
parent 3fc592df49
commit 18540a5e38
9 changed files with 181 additions and 37 deletions

View file

@ -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)