mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 11:20:56 +00:00
PETKA: renamed unknown field in QMessage
This commit is contained in:
parent
93980436aa
commit
ab76b44ce0
@ -94,14 +94,16 @@ enum Opcode {
|
||||
kToMap = 63 // ??? MessageNumber
|
||||
};
|
||||
|
||||
class QMessageObject;
|
||||
|
||||
struct QMessage {
|
||||
uint16 objId;
|
||||
uint16 opcode;
|
||||
int16 arg1;
|
||||
int16 arg2;
|
||||
int16 arg3;
|
||||
int32 unk1;
|
||||
int32 unk2;
|
||||
QMessageObject *sender;
|
||||
int32 unk;
|
||||
};
|
||||
|
||||
struct QReaction {
|
||||
|
@ -97,13 +97,13 @@ void QSystem::addMessage(const QMessage &msg) {
|
||||
_messages.push_back(msg);
|
||||
}
|
||||
|
||||
void QSystem::addMessage(uint16 objId, uint16 opcode, int16 arg1, int16 arg2, int16 arg3, int16 unk1, int16 unk2) {
|
||||
_messages.push_back({objId, opcode, arg1, arg2, arg3, unk1, unk2});
|
||||
void QSystem::addMessage(uint16 objId, uint16 opcode, int16 arg1, int16 arg2, int16 arg3, int16 unk, QMessageObject *sender) {
|
||||
_messages.push_back({objId, opcode, arg1, arg2, arg3, sender, unk});
|
||||
}
|
||||
|
||||
void QSystem::addMessageForAllObjects(uint16 opcode, int16 arg1, int16 arg2, int16 arg3, int16 unk1, int16 unk2) {
|
||||
void QSystem::addMessageForAllObjects(uint16 opcode, int16 arg1, int16 arg2, int16 arg3, int16 unk, QMessageObject *sender) {
|
||||
for (uint i = 0; i < _allObjects.size(); ++i) {
|
||||
_messages.push_back({_allObjects[i]->getId(), opcode, arg1, arg2, arg3, unk1, unk2});
|
||||
_messages.push_back({_allObjects[i]->getId(), opcode, arg1, arg2, arg3, sender, unk});
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -42,8 +42,8 @@ public:
|
||||
bool init();
|
||||
|
||||
void addMessage(const QMessage &msg);
|
||||
void addMessage(uint16 objId, uint16 opcode, int16 arg1 = 0, int16 arg2 = 0, int16 arg3 = 0, int16 unk1 = 0, int16 unk2 = 0);
|
||||
void addMessageForAllObjects(uint16 opcode, int16 arg1 = 0, int16 arg2 = 0, int16 arg3 = 0, int16 unk1 = 0, int16 unk2 = 0);
|
||||
void addMessage(uint16 objId, uint16 opcode, int16 arg1 = 0, int16 arg2 = 0, int16 arg3 = 0, int16 unk = 0, QMessageObject *sender = nullptr);
|
||||
void addMessageForAllObjects(uint16 opcode, int16 arg1 = 0, int16 arg2 = 0, int16 arg3 = 0, int16 unk = 0, QMessageObject *sender = nullptr);
|
||||
|
||||
private:
|
||||
PetkaEngine &_vm;
|
||||
|
Loading…
Reference in New Issue
Block a user