/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Samples/SampleGamePlugin/Interface/SingletonInterfaceImpl.cpp
21 строка
556 B
Jan Krassnigg
More ezStringView usage in core infrastructure (#965)
29 май 2023, 21:10
Не верифицирован
29 май 2023, 21:10
808c5f7
Код
Авторство
О чём код?
#include <SampleGamePlugin/SampleGamePluginPCH.h> #include <SampleGamePlugin/Interface/SingletonInterface.h> #include <Foundation/Configuration/Startup.h> #include <Foundation/Logging/Log.h> // BEGIN-DOCS-CODE-SNIPPET: singleton-impl-definition EZ_IMPLEMENT_SINGLETON(PrintImplementation); PrintImplementation::PrintImplementation() : m_SingletonRegistrar(this) // needed for automatic registration { } // END-DOCS-CODE-SNIPPET void PrintImplementation::Print(const ezFormatString& text) { ezStringBuilder tmp; ezLog::Info(text.GetText(tmp)); }