mirror of
https://github.com/MonsterDruide1/OdysseyDecomp
synced 2026-04-23 09:04:21 +00:00
Library/Event: Implement EventFlowNodeActorKill (#953)
This commit is contained in:
parent
117f9279c4
commit
818e48df59
|
|
@ -237839,15 +237839,15 @@ Library/Event/EventFlowNodeActorKill.o:
|
|||
label:
|
||||
- _ZN2al22EventFlowNodeActorKillC1EPKc
|
||||
- _ZN2al22EventFlowNodeActorKillC2EPKc
|
||||
status: NotDecompiled
|
||||
status: Matching
|
||||
- offset: 0x88dfbc
|
||||
size: 4
|
||||
label: _ZN2al22EventFlowNodeActorKill4initERKNS_21EventFlowNodeInitInfoE
|
||||
status: NotDecompiled
|
||||
status: Matching
|
||||
- offset: 0x88dfc0
|
||||
size: 64
|
||||
label: _ZN2al22EventFlowNodeActorKill5startEv
|
||||
status: NotDecompiled
|
||||
status: Matching
|
||||
Library/Event/EventFlowNodeActorBaseMovementStart.o:
|
||||
'.text':
|
||||
- offset: 0x88e000
|
||||
|
|
|
|||
18
lib/al/Library/Event/EventFlowNodeActorKill.cpp
Normal file
18
lib/al/Library/Event/EventFlowNodeActorKill.cpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include "Library/Event/EventFlowNodeActorKill.h"
|
||||
|
||||
#include "Library/Event/EventFlowFunction.h"
|
||||
#include "Library/LiveActor/LiveActor.h"
|
||||
|
||||
namespace al {
|
||||
EventFlowNodeActorKill::EventFlowNodeActorKill(const char* name) : EventFlowNode(name) {}
|
||||
|
||||
void EventFlowNodeActorKill::init(const EventFlowNodeInitInfo& info) {
|
||||
initEventFlowNode(this, info);
|
||||
}
|
||||
|
||||
void EventFlowNodeActorKill::start() {
|
||||
EventFlowNode::start();
|
||||
getActor()->kill();
|
||||
end();
|
||||
}
|
||||
} // namespace al
|
||||
15
lib/al/Library/Event/EventFlowNodeActorKill.h
Normal file
15
lib/al/Library/Event/EventFlowNodeActorKill.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
|
||||
#include "Library/Event/EventFlowNode.h"
|
||||
|
||||
namespace al {
|
||||
class EventFlowNodeActorKill : public EventFlowNode {
|
||||
public:
|
||||
EventFlowNodeActorKill(const char* name);
|
||||
|
||||
void init(const EventFlowNodeInitInfo& info) override;
|
||||
void start() override;
|
||||
};
|
||||
|
||||
static_assert(sizeof(EventFlowNodeActorKill) == 0x68);
|
||||
} // namespace al
|
||||
Loading…
Reference in a new issue