aboutsummaryrefslogtreecommitdiff
path: root/internal/game/core_course.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-28 02:40:30 -0400
committerhistoria <[not public]>2026-06-28 02:40:30 -0400
commita1b6613c6c6a2f8d6e1ecd47e766bd40f92ac295 (patch)
tree4ff8fefb029c93f2aa3db7361658b0b4e9805b66 /internal/game/core_course.go
parent87dacfbb3dd16e7f55a82361eace98f9a39d75c8 (diff)
downloadthehouseoficarus-a1b6613c6c6a2f8d6e1ecd47e766bd40f92ac295.tar.gz
feat: admin accounts, god mode, OLC commands like dig/room, 'inline' objects changed to 'local' objects
Diffstat (limited to 'internal/game/core_course.go')
-rw-r--r--internal/game/core_course.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/game/core_course.go b/internal/game/core_course.go
index 2b6b28f..5d5c7c5 100644
--- a/internal/game/core_course.go
+++ b/internal/game/core_course.go
@@ -77,6 +77,14 @@ func (cs *CourseStore) LoadAll() {
cs.loadAllLocked()
}
+func (cs *CourseStore) ReloadAll() {
+ cs.mu.Lock()
+ cs.loaded = false
+ cs.courses = make(map[string]*CourseConfig)
+ cs.mu.Unlock()
+ cs.LoadAll()
+}
+
// AllCourses returns the full course config map, loading on first access.
func (cs *CourseStore) AllCourses() map[string]*CourseConfig {
cs.mu.Lock()