mirror of https://github.com/PrimeDecomp/prime.git
Match CScriptMazeNode::SendScriptMsgs
This commit is contained in:
parent
7f768f8405
commit
972aa78e61
|
@ -81,8 +81,8 @@ public:
|
|||
|
||||
static void LoadMazeSeeds();
|
||||
|
||||
inline void SendScriptMsg(CStateManager& mgr, CEntity* to, EScriptObjectMessage msg) {
|
||||
mgr.SendScriptMsg(to, GetUniqueId(), msg);
|
||||
static inline void SendScriptMsg(CStateManager& mgr, CEntity* to, TUniqueId sender, EScriptObjectMessage msg) {
|
||||
mgr.SendScriptMsg(to, sender, msg);
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
@ -300,13 +300,11 @@ void CScriptMazeNode::Reset(CStateManager& mgr) {
|
|||
x11c_effectId = xfc_actorId = x10c_triggerId = xf4_gateEffectId = kInvalidUniqueId;
|
||||
}
|
||||
|
||||
// TODO non-matching
|
||||
// https://decomp.me/scratch/3F51I
|
||||
void CScriptMazeNode::SendScriptMsgs(CStateManager& mgr, EScriptObjectMessage msg) {
|
||||
mgr.SendScriptMsg(mgr.ObjectById(x11c_effectId), GetUniqueId(), msg);
|
||||
mgr.SendScriptMsg(mgr.ObjectById(xfc_actorId), GetUniqueId(), msg);
|
||||
mgr.SendScriptMsg(mgr.ObjectById(x10c_triggerId), GetUniqueId(), msg);
|
||||
mgr.SendScriptMsg(mgr.ObjectById(xf4_gateEffectId), GetUniqueId(), msg);
|
||||
SendScriptMsg(mgr, mgr.ObjectById(x11c_effectId), GetUniqueId(), msg);
|
||||
SendScriptMsg(mgr, mgr.ObjectById(xfc_actorId), GetUniqueId(), msg);
|
||||
SendScriptMsg(mgr, mgr.ObjectById(x10c_triggerId), GetUniqueId(), msg);
|
||||
SendScriptMsg(mgr, mgr.ObjectById(xf4_gateEffectId), GetUniqueId(), msg);
|
||||
}
|
||||
|
||||
void CScriptMazeNode::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) {
|
||||
|
|
Loading…
Reference in New Issue