mirror of
https://github.com/libretro/scummvm.git
synced 2025-05-13 09:36:21 +00:00
Added script method for changing the current hotspot header flags mask byte
svn-id: r23629
This commit is contained in:
parent
2b4518d8a9
commit
906f36a323
@ -61,6 +61,15 @@ void Script::setHotspotScript(uint16 hotspotId, uint16 scriptIndex, uint16 v3) {
|
||||
rsc->sequenceOffset = offset;
|
||||
}
|
||||
|
||||
void Script::method2(uint16 v1, uint16 v2, uint16 v3) {
|
||||
// Not yet implemented
|
||||
}
|
||||
|
||||
void Script::setHotspotFlagMask(uint16 maskVal, uint16 v2, uint16 v3) {
|
||||
ValueTableData &fields = Resources::getReference().fieldList();
|
||||
fields.hdrFlagMask() = (uint8) maskVal;
|
||||
}
|
||||
|
||||
// Clears the sequence delay list
|
||||
|
||||
void Script::clearSequenceDelayList(uint16 v1, uint16 scriptIndex, uint16 v3) {
|
||||
@ -431,6 +440,7 @@ struct SequenceMethodRecord {
|
||||
SequenceMethodRecord scriptMethods[] = {
|
||||
{0, Script::activateHotspot},
|
||||
{1, Script::setHotspotScript},
|
||||
{3, Script::setHotspotFlagMask},
|
||||
{4, Script::clearSequenceDelayList},
|
||||
{5, Script::deactivateHotspotSet},
|
||||
{6, Script::deactivateHotspot},
|
||||
|
@ -77,6 +77,7 @@ public:
|
||||
static void activateHotspot(uint16 hotspotId, uint16 v2, uint16 v3);
|
||||
static void setHotspotScript(uint16 hotspotId, uint16 scriptIndex, uint16 v3);
|
||||
static void method2(uint16 v1, uint16 v2, uint16 v3);
|
||||
static void setHotspotFlagMask(uint16 maskVal, uint16 v2, uint16 v3);
|
||||
static void clearSequenceDelayList(uint16 v1, uint16 scriptIndex, uint16 v3);
|
||||
static void deactivateHotspotSet(uint16 listIndex, uint16 v2, uint16 v3);
|
||||
static void deactivateHotspot(uint16 hotspotId, uint16 v2, uint16 v3);
|
||||
|
Loading…
x
Reference in New Issue
Block a user