MCPcopy Create free account

hub / github.com/TalesMUD/talesmud / functions

Functions2,537 in github.com/TalesMUD/talesmud

FunctionPt
(e)
public/mud-client/public/bundle.js:26
MethodPutRoom
PutRoom ... Updates a room
pkg/server/handler/rooms.go:90
MethodPutScript
PutScript ... Updates a script
pkg/server/handler/scripts.go:104
FunctionPy
(e)
public/mud-client/public/bundle.js:26
FunctionQh
()
public/mud-client/public/bundle.js:26
MethodQuestProgress
()
pkg/repository/sqlite_factory.go:71
MethodQuests
()
pkg/repository/sqlite_factory.go:67
MethodQuestsService
()
pkg/service/facade.go:158
MethodQueuePlayerAction
QueuePlayerAction queues an action for a player's next auto-attack turn
pkg/mudserver/game/game_combat.go:905
MethodQueuePlayerSkill
QueuePlayerSkill queues a skill for a player's next turn
pkg/mudserver/game/game_combat.go:922
FunctionQv
(e)
public/mud-client/public/bundle.js:26
FunctionReadFromFile
(fileName string)
pkg/entities/dialogs/dialogs.go:161
MethodRecordSessionEnd
RecordSessionEnd marks an existing session as ended and records its duration. If the session is not found (e.g., server restart), this is a no-op.
pkg/service/gueststats.go:63
MethodRecordSessionStart
RecordSessionStart records the start of a new guest session.
pkg/service/gueststats.go:46
FunctionRefTrue
()
pkg/entities/dialogs/dialogs.go:183
MethodRegister
Register registers a script handler for an event
pkg/scripts/events/registry.go:59
FunctionRegisterCharactersModule
RegisterCharactersModule registers the tales.characters module
pkg/scripts/runner/lua/modules/characters.go:11
FunctionRegisterDialogsModule
RegisterDialogsModule registers the tales.dialogs module
pkg/scripts/runner/lua/modules/dialogs.go:11
FunctionRegisterGameModule
RegisterGameModule registers the tales.game module
pkg/scripts/runner/lua/modules/game.go:18
FunctionRegisterItemsModule
RegisterItemsModule registers the tales.items module
pkg/scripts/runner/lua/modules/items.go:11
FunctionRegisterNPCsModule
RegisterNPCsModule registers the tales.npcs module
pkg/scripts/runner/lua/modules/npcs.go:12
FunctionRegisterQuestsModule
RegisterQuestsModule registers the tales.quests module
pkg/scripts/runner/lua/modules/quests.go:11
FunctionRegisterRoomsModule
RegisterRoomsModule registers the tales.rooms module
pkg/scripts/runner/lua/modules/rooms.go:12
FunctionRegisterUtilsModule
RegisterUtilsModule registers the tales.utils module
pkg/scripts/runner/lua/modules/utils.go:18
MethodRemoveInstance
RemoveInstance completely removes an instance from the manager
pkg/mudserver/game/npc_manager.go:319
MethodRemoveItemByName
RemoveItemByName removes the first item matching the name and returns it
pkg/entities/items/inventory.go:84
FunctionRemoveStringFromSlice
RemoveStringFromSlice ...
pkg/mudserver/game/util/game_utils.go:317
MethodRenderGraphData
RenderGraphData returns the world map as JSON graph data
pkg/server/handler/worldrenderer.go:214
MethodResetConversation
ResetConversation resets the conversation to the main node
pkg/service/conversations.go:109
MethodRestock
Restock refills merchant inventory to max quantities
pkg/entities/npcs/merchant_trait.go:119
MethodRollLoot
RollLoot implements LootTablesService.RollLoot
pkg/service/loottables.go:46
MethodRollLootFromTable
RollLootFromTable rolls against a provided loot table (for testing or custom drops)
pkg/service/loottables.go:29
MethodRollLootTable
RollLootTable performs a test roll against a loot table Query params: ?playerLevel=1&baseGold=100
pkg/server/handler/loottables.go:92
MethodRooms
()
pkg/repository/sqlite_factory.go:27
FunctionRoomsFromJSONString
RoomsFromJSONString ...
pkg/entities/rooms/converter.go:21
MethodRoomsService
()
pkg/service/facade.go:111
FunctionRt
(e)
public/mud-client/public/bundle.js:26
MethodRun
()
pkg/mudserver/mudserver.go:79
MethodRun
Run main game loop
pkg/mudserver/game/game.go:182
MethodRun
Run executes a JavaScript script with the given context
pkg/scripts/runner/defaultscriptrunner.go:53
MethodRun
Run executes a script with the given context, routing to the appropriate runner
pkg/scripts/runner/factory.go:44
MethodRun
Run executes a Lua script with the given context (backward compatibility)
pkg/scripts/runner/lua/luarunner.go:97
MethodRun
Run ... starts the server
pkg/server/server.go:363
MethodRunWithResult
RunWithResult executes a script and returns detailed result information
pkg/scripts/runner/factory.go:59
MethodRunner
()
pkg/service/facade.go:130
FunctionRy
(e)
public/mud-client/public/bundle.js:26
MethodScriptTypes
()
pkg/service/scripts.go:23
MethodScripts
()
pkg/repository/sqlite_factory.go:31
MethodScriptsService
()
pkg/service/facade.go:121
FunctionSd
()
public/mud-client/public/bundle.js:26
MethodSeedCharacterTemplates
SeedCharacterTemplates seeds the database with default system presets Also seeds starter item templates if they don't exist
pkg/server/handler/charactertemplates.go:85
MethodServeBackground
ServeBackground serves a background image from disk
pkg/server/handler/backgrounds.go:71
MethodServerSettings
()
pkg/repository/sqlite_factory.go:63
MethodServerSettingsService
()
pkg/service/facade.go:154
MethodSet
(key string, value interface{})
pkg/mudserver/game/state.go:27
MethodSet
Set adds custom data to the context
pkg/scripts/events/context.go:123
MethodSetAutoAttackTarget
SetAutoAttackTarget sets the persistent auto-attack target for a player
pkg/mudserver/game/game_combat.go:940
MethodSetFacade
SetFacade sets the facade reference (called after all services are created)
pkg/service/quests.go:58
MethodSetRole
SetRole sets the role for a user. Only "player" and "creator" are allowed via API. Admin role is managed exclusively via the MUD_ADMIN_OAUTHID env var
pkg/service/users.go:88
MethodSetScriptsRepository
SetScriptsRepository sets the scripts repository for loading scripts
pkg/scripts/events/registry.go:52
MethodSetServices
SetServices injects the required services into the runner
pkg/scripts/runner/lua/luarunner.go:52
MethodShutdown
Shutdown gracefully shuts down the script runner
pkg/scripts/runner/defaultscriptrunner.go:48
MethodShutdown
Shutdown gracefully shuts down all runners
pkg/scripts/runner/factory.go:78
MethodShutdown
Shutdown gracefully shuts down the script runner
pkg/scripts/runner/lua/luarunner.go:87
MethodSize
Size returns the current number of states in the pool
pkg/scripts/runner/lua/pool.go:100
FunctionSkillByName
SkillByName returns the first skill matching the given name (case-insensitive), or nil
pkg/entities/skills/registry.go:61
MethodSkills
()
pkg/repository/sqlite_factory.go:75
MethodSkillsService
()
pkg/service/facade.go:162
MethodSpawnFromTemplate
SpawnFromTemplate creates a new NPC instance from a template The instance is returned but NOT persisted (memory-only) Note: For unique NPCs, the calle
pkg/service/npcs.go:102
MethodSpawnInstanceDirect
SpawnInstanceDirect creates a new NPC instance from a template ID directly (not via spawner)
pkg/mudserver/game/npc_manager.go:173
MethodSpawnNPC
SpawnNPC creates an instance from a template Note: This only creates the NPC data, the caller must register it with the game's NPCManager
pkg/server/handler/npcs.go:121
MethodStartCleanupLoop
StartCleanupLoop starts a background goroutine that periodically cleans up expired guests.
pkg/service/guest.go:301
MethodStats
Stats returns statistics about registered handlers
pkg/scripts/events/registry.go:225
MethodStore
(party *e.Party)
pkg/service/parties.go:62
MethodStore
Store creates a new skill and refreshes the cache.
pkg/service/skills.go:51
MethodStore
Store overrides the repository store to add metadata
pkg/service/dialogs.go:27
MethodStore
Store overrides the repository store to add creation timestamp
pkg/service/npcs.go:44
MethodStore
Store overrides the repository store to add creation timestamp
pkg/service/npcspawners.go:27
MethodStore
(quest *quests.Quest)
pkg/service/quests.go:80
MethodStore
(entity interface{})
pkg/repository/sqlite_generic.go:132
MethodStore
(session *e.GuestStatSession)
pkg/repository/gueststat_sqlite.go:21
MethodStore
(character *e.Character)
pkg/repository/characters_sqlite.go:89
MethodStore
(conv *conversations.Conversation)
pkg/repository/conversations_sqlite.go:83
MethodStore
(s *npc.NPCSpawner)
pkg/repository/npcspawners_sqlite.go:78
MethodStore
(rep *r.Room)
pkg/repository/rooms_sqlite.go:95
MethodStore
(skill *skills.Skill)
pkg/repository/skills_sqlite.go:59
MethodStore
(template *c.CharacterTemplate)
pkg/repository/charactertemplates_sqlite.go:78
MethodStore
(dialog *dialogs.Dialog)
pkg/repository/dialogs_sqlite.go:59
MethodStore
(lootTable *items.LootTable)
pkg/repository/loottables_sqlite.go:70
MethodStore
(progress *quests.QuestProgress)
pkg/repository/quest_progress_sqlite.go:79
MethodStore
(item *i.Item)
pkg/repository/items_sqlite.go:73
MethodStore
(party *e.Party)
pkg/repository/parties_sqlite.go:31
MethodStore
(character *characters.Character)
pkg/repository/interfaces.go:59
MethodStore
(party *entities.Party)
pkg/repository/interfaces.go:66
MethodStore
(room *rooms.Room)
pkg/repository/interfaces.go:94
MethodStore
(script *scripts.Script)
pkg/repository/interfaces.go:106
MethodStore
(item *items.Item)
pkg/repository/interfaces.go:118
MethodStore
(template *characters.CharacterTemplate)
pkg/repository/interfaces.go:137
MethodStore
(dialog *dialogs.Dialog)
pkg/repository/interfaces.go:159
MethodStore
(conv *conversations.Conversation)
pkg/repository/interfaces.go:171
← previousnext →1,901–2,000 of 2,537, ranked by callers