ILLUSIONS: Implement more script opcodes and related functions

This commit is contained in:
johndoe123 2014-03-19 20:39:16 +01:00 committed by Eugene Sandulenko
parent e881db0732
commit 48ef46c02d
12 changed files with 176 additions and 6 deletions

View file

@ -212,4 +212,10 @@ byte *ScriptResource::getThreadCode(uint32 threadId) {
return _data + _codeOffsets[(threadId & 0xFFFF) - 1];
}
ProgInfo *ScriptResource::getProgInfo(uint32 index) {
if (index > 0 && index <= _progInfosCount)
return &_progInfos[index - 1];
return 0;
}
} // End of namespace Illusions