文字系统大体完工

This commit is contained in:
EmsiaetKadosh
2025-01-18 10:36:08 +08:00
parent 1007ac469a
commit b86053c3a7
7 changed files with 188 additions and 20 deletions
+17
View File
@@ -0,0 +1,17 @@
//
// Created by EmsiaetKadosh on 25-1-18.
//
#include "Text.h"
#include "def.h"
const String& TranslatableText::getText() const noexcept {
if (target == nullptr || langConfig == translator.getConfigVersion()) {
target = translator.getText(idSrc);
langConfig = translator.getConfigVersion();
}
return *target;
}