-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Rewrote ammo switching, mostly fixed decals.
- Loading branch information
1 parent
0c02939
commit 2c7fbf7
Showing
6 changed files
with
216 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#pragma once | ||
|
||
namespace RE | ||
{ | ||
namespace Cascadia | ||
{ | ||
class CellFullyLoadedListener : public BSTEventSink<TESCellFullyLoadedEvent> | ||
{ | ||
public: | ||
static CellFullyLoadedListener* GetSingleton() | ||
{ | ||
static CellFullyLoadedListener instance; | ||
return &instance; | ||
} | ||
|
||
virtual BSEventNotifyControl ProcessEvent(const TESCellFullyLoadedEvent& a_event, BSTEventSource<TESCellFullyLoadedEvent>*) override | ||
{ | ||
DEBUG("EVENT FIRED"); | ||
|
||
if (a_event.cell) | ||
{ | ||
a_event.cell->UpdateAllDecals(); | ||
} | ||
|
||
return BSEventNotifyControl::kContinue; | ||
} | ||
}; | ||
|
||
void RegisterForCellFullyLoaded(BSTEventSink<TESCellFullyLoadedEvent>* a_sink) { | ||
using func_t = decltype(&RegisterForCellFullyLoaded); | ||
REL::Relocation<func_t> func{ REL::ID(2201571) }; | ||
return func(a_sink); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.