FULLPIPE: Implement MessageQueue::activateExCommandsByKind()
This commit is contained in:
parent
30123a51d0
commit
1bf3f9aacf
1 changed files with 17 additions and 6 deletions
|
@ -610,6 +610,23 @@ void MessageQueue::changeParam28ForObjectId(int objId, int oldParam28, int newPa
|
|||
}
|
||||
}
|
||||
|
||||
int MessageQueue::activateExCommandsByKind(int kind) {
|
||||
int res = 0;
|
||||
|
||||
for (uint i = 0; i < getCount(); i++) {
|
||||
ExCommand *ex = getExCommandByIndex(i);
|
||||
|
||||
if (ex->_messageKind == kind) {
|
||||
ex->_messageKind = 0;
|
||||
ex->_excFlags |= 1;
|
||||
|
||||
res++;
|
||||
}
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
MessageQueue *GlobalMessageQueueList::getMessageQueueById(int id) {
|
||||
for (Common::Array<MessageQueue *>::iterator s = begin(); s != end(); ++s) {
|
||||
if ((*s)->_id == id)
|
||||
|
@ -619,12 +636,6 @@ MessageQueue *GlobalMessageQueueList::getMessageQueueById(int id) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
int MessageQueue::activateExCommandsByKind(int kind) {
|
||||
warning("STUB: MessageQueue::activateExCommandsByKind()");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void GlobalMessageQueueList::deleteQueueById(int id) {
|
||||
for (uint i = 0; i < size(); i++)
|
||||
if (_storage[i]->_id == id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue