载入中...
搜索中...
未找到
ProcgenLive.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Export.h"
4
5namespace eve::procgen {
6
7class Procgen;
8
19[[nodiscard]] Procgen* liveProcgen() noexcept;
20
22void publishLiveProcgen(Procgen* instance) noexcept;
23
25void clearLiveProcgen(Procgen* instance) noexcept;
26
27} // namespace eve::procgen
void clearLiveProcgen(Procgen *instance) noexcept
Clears the live Procgen owner when it matches instance (destructor).
Procgen * liveProcgen() noexcept
Returns the currently live Procgen module instance, or nullptr.
void publishLiveProcgen(Procgen *instance) noexcept
Publishes instance as the live Procgen owner (constructor path).