Files
XCEngine/editor/app/State/EditorSelectionStamp.h

14 lines
307 B
C
Raw Normal View History

2026-04-18 23:56:17 +08:00
#pragma once
#include <atomic>
#include <cstdint>
namespace XCEngine::UI::Editor::App {
inline std::uint64_t GenerateEditorSelectionStamp() {
static std::atomic<std::uint64_t> counter = 0u;
return counter.fetch_add(1u, std::memory_order_relaxed) + 1u;
}
} // namespace XCEngine::UI::Editor::App