2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 13:44:56 +00:00

Add CVarValueReference

This commit is contained in:
2021-06-04 01:28:03 -07:00
parent 0b523f98c3
commit 96680d2660
4 changed files with 65 additions and 11 deletions

View File

@@ -472,6 +472,9 @@ void CVar::lock() {
void CVar::dispatch() {
for (const ListenerFunc& listen : m_listeners)
listen(this);
for (auto* ref : m_valueReferences) {
ref->updateValue();
}
}
bool isReal(std::string_view v) {