MCPcopy Create free account

hub / github.com/TalesMUD/talesmud / functions

Functions2,537 in github.com/TalesMUD/talesmud

↓ 1 callersFunctioncreateMobileStore
()
public/mud-client/src/game/mobile/mobileStore.js:5
↓ 1 callersFunctioncreateNPCSpawner
(token, spawner, cb, errorCb)
public/app/src/api/npcspawners.js:53
↓ 1 callersFunctioncreateOverlayStore
()
public/mud-client/src/game/ui/overlayStore.js:7
↓ 1 callersFunctioncreateRoom
(token, room, cb, errorCb)
public/app/src/api/rooms.js:97
↓ 1 callersFunctioncreateSampleDialog
()
cmd/dialog_sandbox/main.go:213
↓ 1 callersFunctioncreateSettingsStore
()
public/mud-client/src/game/SettingsStore.js:21
↓ 1 callersMethodcreateState
createState creates a new Lua state with modules and sandbox applied
pkg/scripts/runner/lua/luarunner.go:181
↓ 1 callersFunctioncreateStore
()
public/app/src/creator/old/__RoomsEditorStore.js:3
↓ 1 callersFunctioncreateStore
()
public/app/src/creator/old/__ItemsEditorStore.js:3
↓ 1 callersFunctioncreateSubMenuStore
()
public/app/src/stores.js:3
↓ 1 callersFunctioncreateSubMenuStore
()
public/mud-client/src/stores.js:3
↓ 1 callersFunctioncreateUserStore
()
public/app/src/stores.js:31
↓ 1 callersFunctioncreateUserStore
()
public/mud-client/src/stores.js:31
↓ 1 callersFunctiondeleteNPCSpawner
(token, id, cb, errorCb)
public/app/src/api/npcspawners.js:81
↓ 1 callersFunctiondeleteRoom
(token, id, cb, errorCb)
public/app/src/api/rooms.js:27
↓ 1 callersFunctiondf
(e,t,n)
public/mud-client/public/bundle.js:26
↓ 1 callersMethodequipSkill
(game def.GameCtrl, message *messages.Message, skillName string)
pkg/mudserver/game/commands/skills.go:118
↓ 1 callersFunctionexamineItem
examineItem generates a detailed description of an item
pkg/mudserver/game/commands/examine.go:76
↓ 1 callersFunctionexecuteItemScript
executeItemScript runs the OnUse Lua script
pkg/mudserver/game/commands/use.go:184
↓ 1 callersMethodexecuteWithTimeout
executeWithTimeout executes Lua code with timeout protection
pkg/scripts/runner/lua/luarunner.go:313
↓ 1 callersFunctionextractSnippet
extractSnippet returns a short code snippet around the given position for error messages.
pkg/importer/validator.go:412
↓ 1 callersFunctionextract_tiles
Extract tiles from a sprite sheet. Args: input_path: Path to the sprite sheet image tile_width: Width of each tile in pixels
scripts/asset-pipeline/extract_tiles.py:260
↓ 1 callersFunctionfetchJWKS
fetchJWKS retrieves JWKS keys from Auth0, using an in-memory cache with TTL.
pkg/server/auth.go:45
↓ 1 callersFunctionff
(e,t)
public/mud-client/public/bundle.js:26
↓ 1 callersFunctionfindOnlinePlayer
findOnlinePlayer searches for an online player by character name (case-insensitive). Returns (userID, characterName, found).
pkg/mudserver/game/commands/tell.go:64
↓ 1 callersFunctionformatItemSubType
formatItemSubType formats item subtype for display
pkg/mudserver/game/commands/examine.go:259
↓ 1 callersFunctionformatItemType
formatItemType formats item type for display
pkg/mudserver/game/commands/examine.go:237
↓ 1 callersFunctionformatLabel
(playerName string, playerLevel int32, enemyName string, enemyLevel int32)
pkg/mudserver/game/combat/simutil/simutil.go:270
↓ 1 callersFunctionformatLevelUpMessage
formatLevelUpMessage creates a formatted level-up notification message
pkg/mudserver/game/leveling/leveling.go:120
↓ 1 callersFunctionformatQuality
formatQuality formats item quality for display
pkg/mudserver/game/commands/examine.go:277
↓ 1 callersFunctionformatSlot
formatSlot formats equipment slot for display
pkg/mudserver/game/commands/examine.go:295
↓ 1 callersFunctionformatSlotName
formatSlotName returns a display-friendly slot name
pkg/mudserver/game/commands/equipment.go:85
↓ 1 callersFunctionfromGridItems
(items)
public/mud-client/src/game/layout/LayoutStore.js:55
↓ 1 callersMethodgenerateDescription
(c *gin.Context, req *GenerateCharacterRequest, characterName string)
pkg/server/handler/generate.go:117
↓ 1 callersFunctiongenerateGuestRefID
()
pkg/service/guest.go:73
↓ 1 callersMethodgenerateName
(c *gin.Context, req *GenerateCharacterRequest)
pkg/server/handler/generate.go:92
↓ 1 callersFunctiongenerateStatID
()
pkg/service/gueststats.go:39
↓ 1 callersFunctiongenerateUUID
generateUUID generates a UUID v4
pkg/scripts/runner/lua/luarunner.go:426
↓ 1 callersFunctiongetAvailableOptions
(dialog *d.Dialog, state *d.DialogState)
cmd/dialog_sandbox/main.go:103
↓ 1 callersFunctiongetDodgeBuffPercent
getDodgeBuffPercent returns total dodge buff percent from status effects
pkg/mudserver/game/combat/engine_skills.go:55
↓ 1 callersFunctiongetItemStats
getItemStats returns a brief stats summary for an item
pkg/mudserver/game/commands/equipment.go:113
↓ 1 callersFunctiongetItems
(token, filters, cb, errorCb)
public/app/src/api/items.js:51
↓ 1 callersFunctiongetKeyFunc
getKeyFunc returns a function to be used as the jwt.Keyfunc for JWT token validation. It verifies the 'aud' and 'iss' claims and extracts the PEM cert
pkg/server/auth.go:107
↓ 1 callersFunctiongetMimeType
getMimeType returns the MIME type for a given filename
pkg/server/handler/backgrounds.go:57
↓ 1 callersFunctiongetNPCSpawner
(token, id, cb, errorCb)
public/app/src/api/npcspawners.js:20
↓ 1 callersFunctiongetNPCSpawnersByRoom
(token, roomId, cb, errorCb)
public/app/src/api/npcspawners.js:49
↓ 1 callersMethodgetNext
* Returns the next entry
public/app/src/game/echo/HistoryController.js:47
↓ 1 callersMethodgetNext
()
public/mud-client/public/bundle.js:26
↓ 1 callersMethodgetNext
* Returns the next entry
public/mud-client/src/game/echo/HistoryController.js:47
↓ 1 callersFunctiongetPemCert
getPemCert retrieves the PEM certificate matching the JWT token's key ID from cached JWKS keys.
pkg/server/auth.go:90
↓ 1 callersFunctiongetPlayerColor
(playerName)
public/mud-client/src/game/playerColors.js:54
↓ 1 callersMethodgetPrevious
* Returns the previous entry
public/app/src/game/echo/HistoryController.js:38
↓ 1 callersMethodgetPrevious
()
public/mud-client/public/bundle.js:26
↓ 1 callersMethodgetPrevious
* Returns the previous entry
public/mud-client/src/game/echo/HistoryController.js:38
↓ 1 callersMethodgetReturnValue
getReturnValue gets the return value from the Lua stack
pkg/scripts/runner/lua/luarunner.go:348
↓ 1 callersFunctiongetRoom
(token, id, cb, errorCb)
public/app/src/api/rooms.js:4
↓ 1 callersFunctiongetRooms
(token, filters, cb, errorCb)
public/app/src/api/rooms.js:54
↓ 1 callersFunctiongetRoomsValueHelp
(token, cb, errorCb)
public/app/src/api/rooms.js:69
↓ 1 callersFunctiongetSharedFragment
(fragment, candidates)
public/app/src/game/echo/Utils.js:165
↓ 1 callersFunctiongetSharedFragment
(fragment, candidates)
public/mud-client/src/game/echo/Utils.js:165
↓ 1 callersMethodgetSkillTargets
getSkillTargets returns the target(s) for a skill based on its targeting type
pkg/mudserver/game/combat/engine_skills.go:504
↓ 1 callersFunctiongn
(e,t)
public/mud-client/public/bundle.js:26
↓ 1 callersMethodhandleBroadcastMessages
()
pkg/mudserver/mudserver.go:304
↓ 1 callersFunctionhandleCharacterSelected
(game def.GameCtrl, user *entities.User, character *characters.Character)
pkg/mudserver/game/commands/select_character.go:46
↓ 1 callersMethodhandleClientTimeouts
()
pkg/mudserver/mudserver.go:91
↓ 1 callersMethodhandleCombatUpdates
handleCombatUpdates processes combat tick (turn timeouts, NPC actions)
pkg/mudserver/game/game.go:175
↓ 1 callersMethodhandleDefaultMessage
handleDefaultMessage implements implicit "say" behavior. When player input doesn't match any command, treat it as room speech. This allows players to
pkg/mudserver/game/game_handlers.go:14
↓ 1 callersMethodhandleGameUpdates
HP regeneration every 10 seconds
pkg/mudserver/game/game.go:150
↓ 1 callersMethodhandleInCombatAttack
handleInCombatAttack handles an attack action during combat (queues target switch)
pkg/mudserver/game/commands/attack.go:191
↓ 1 callersMethodhandleInitiateCombat
handleInitiateCombat handles attacking an NPC to start combat
pkg/mudserver/game/commands/attack.go:66
↓ 1 callersFunctionhandleInput
(data)
public/app/src/game/Client.js:134
↓ 1 callersFunctionhandleInput
(data)
public/mud-client/src/game/Client.js:393
↓ 1 callersMethodhandleNPCUpdates
handleNPCUpdates processes all NPC instances for state updates
pkg/mudserver/game/game_npcs.go:9
↓ 1 callersFunctionhandleQuestAction
handleQuestAction processes quest accept/complete/progress actions from dialog options
pkg/mudserver/game/commands/dialog_select.go:289
↓ 1 callersFunctionhandleQuestDialogOption
handleQuestDialogOption handles a quest option that was injected into the dialog by the talk command. It shows the NPC response text and then performs
pkg/mudserver/game/commands/dialog_select.go:448
↓ 1 callersMethodhandleReadComplete
* Handle input completion
public/app/src/game/echo/LocalEchoController.js:399
↓ 1 callersMethodhandleReadComplete
()
public/mud-client/public/bundle.js:26
↓ 1 callersMethodhandleReadComplete
* Handle input completion
public/mud-client/src/game/echo/LocalEchoController.js:399
↓ 1 callersMethodhandleRegenerationUpdates
handleRegenerationUpdates processes HP regeneration for all online players. Called every 10 seconds by the regeneration ticker.
pkg/mudserver/game/game_regeneration.go:19
↓ 1 callersMethodhandleRoomUpdates
()
pkg/mudserver/game/game_rooms.go:74
↓ 1 callersMethodhandleSpawnerUpdates
handleSpawnerUpdates processes all spawners and spawns new instances as needed
pkg/mudserver/game/game_spawners.go:11
↓ 1 callersFunctionhandleTokenError
handleTokenError handles the case where the JWT token is invalid. It logs the error and aborts the gin context with a 401 status.
pkg/server/auth.go:134
↓ 1 callersFunctionhandleTokenSuccess
handleTokenSuccess handles the case where the JWT token is valid. It sets the user ID and user in the gin context, if they don't already exist. It als
pkg/server/auth.go:144
↓ 1 callersMethodhandleUserJoined
(user *entities.User)
pkg/mudserver/game/game_handlers.go:79
↓ 1 callersMethodhandleUserQuit
(user *entities.User)
pkg/mudserver/game/game_handlers.go:34
↓ 1 callersFunctionhasActiveBuffFromSkill
hasActiveBuffFromSkill checks if the player already has an active status effect from a specific skill
pkg/mudserver/game/combat/simutil/simutil.go:348
↓ 1 callersFunctionhashName
Simple string hash → index in [0, 16).
public/mud-client/src/game/playerColors.js:42
↓ 1 callersFunctionhy
(e)
public/mud-client/public/bundle.js:26
↓ 1 callersMethodimportDialogs
(yamlDialogs []*YAMLDialog)
pkg/importer/importer.go:546
↓ 1 callersMethodimportItems
(yamlItems []*YAMLItem)
pkg/importer/importer.go:514
↓ 1 callersMethodimportLootTables
(yamlLootTables []*YAMLLootTable)
pkg/importer/importer.go:530
↓ 1 callersMethodimportNPCs
(yamlNPCs []*YAMLNPC)
pkg/importer/importer.go:562
↓ 1 callersMethodimportQuests
(yamlQuests []*YAMLQuest)
pkg/importer/importer.go:594
↓ 1 callersMethodimportRooms
(yamlRooms []*YAMLRoom)
pkg/importer/importer.go:632
↓ 1 callersMethodimportScripts
Import functions
pkg/importer/importer.go:498
↓ 1 callersMethodimportSkills
(yamlSkills []*YAMLSkill)
pkg/importer/importer.go:610
↓ 1 callersMethodimportSpawners
(yamlSpawners []*YAMLSpawner)
pkg/importer/importer.go:578
↓ 1 callersMethodinitializeResidents
initializeResidents loads unique NPCs (non-templates) into the instance manager. NPCs are discovered two ways: 1. Listed in a Room's NPC list (Room.NP
pkg/mudserver/game/npc_manager.go:82
↓ 1 callersFunctionisAlreadyResting
isAlreadyResting checks if a character is currently resting.
pkg/mudserver/game/commands/rest.go:69
↓ 1 callersFunctionisIncompleteInput
(input)
public/app/src/game/echo/Utils.js:81
← previousnext →1,101–1,200 of 2,537, ranked by callers