Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YGYOOO/WorldX
/ functions
Functions
1,010 in github.com/YGYOOO/WorldX
⨍
Functions
1,010
◇
Types & classes
133
↓ 261 callers
Function
t
(key: string, opts?: Record<string, unknown>)
client/src/ui/utils/event-format.ts:4
↓ 44 callers
Function
getDb
()
server/src/store/db.ts:162
↓ 39 callers
Method
getState
(charId: string)
server/src/core/character-manager.ts:131
↓ 26 callers
Function
generateId
()
server/src/utils/id-generator.ts:3
↓ 25 callers
Method
getCurrentTime
()
server/src/core/world-manager.ts:127
↓ 23 callers
Function
save
(filename, data)
generators/map/src/index.mjs:49
↓ 22 callers
Method
isWalkable
(gx: number, gy: number)
client/src/systems/MapManager.ts:138
↓ 21 callers
Method
getProfile
(charId: string)
server/src/core/character-manager.ts:100
↓ 19 callers
Method
updateState
(charId: string, patch: Partial<CharacterState>)
server/src/core/character-manager.ts:170
↓ 18 callers
Function
fetchJSON
(path: string)
client/src/ui/services/api-client.ts:38
↓ 18 callers
Method
getSceneConfig
()
server/src/core/world-manager.ts:117
↓ 15 callers
Method
getAllProfiles
()
server/src/core/character-manager.ts:106
↓ 13 callers
Function
postJSON
(path: string, body?: unknown)
client/src/ui/services/api-client.ts:42
↓ 13 callers
Method
recordEvent
(job: ActiveJob, event: JobEvent)
server/src/core/create-job-manager.ts:445
↓ 12 callers
Method
addMemory
(params: { characterId: string; type: MemoryType; content: string; gameTime: GameTime; imp
server/src/core/memory-manager.ts:41
↓ 12 callers
Method
clear
()
client/src/systems/EventQueue.ts:39
↓ 12 callers
Method
getWorldDir
()
server/src/services/app-context.ts:54
↓ 11 callers
Method
emitPlaybackState
()
client/src/systems/PlaybackController.ts:422
↓ 11 callers
Method
isPinnedLocation
(locationId: string | null | undefined)
client/src/systems/MapManager.ts:402
↓ 10 callers
Function
buildWorldTimeInfo
( gameTime: GameTime, config?: SceneTimeConfig, )
server/src/utils/time-helpers.ts:200
↓ 10 callers
Function
getImageSize
(imageBuffer)
generators/map/src/utils/image-utils.mjs:47
↓ 10 callers
Function
logError
(step, error)
generators/map/src/utils/logger.mjs:71
↓ 9 callers
Method
build
(templateName: string, variables: Record<string, string>)
server/src/llm/prompt-builder.ts:49
↓ 9 callers
Method
call
(params: { messages: Message[]; schema: ZodSchema<T>; options: LLMCallOptions; })
server/src/llm/llm-client.ts:39
↓ 9 callers
Function
chipBtnStyle
(active: boolean)
client/src/ui/panels/TopBar.tsx:596
↓ 9 callers
Method
getCurrentTimelineId
()
server/src/services/timeline-manager.ts:215
↓ 9 callers
Method
getLocation
(locationId: string)
server/src/core/world-manager.ts:188
↓ 9 callers
Method
getLocationObjects
(locationId: string)
server/src/core/world-manager.ts:458
↓ 9 callers
Method
getWorldAction
(actionId: string)
server/src/core/world-manager.ts:450
↓ 9 callers
Function
loadPrompt
(filename, variables = {})
generators/map/src/utils/prompt-loader.mjs:8
↓ 9 callers
Function
log
(step, event, data)
generators/map/src/utils/logger.mjs:23
↓ 9 callers
Method
pixelToGrid
(px: number, py: number)
client/src/systems/MapManager.ts:124
↓ 9 callers
Function
save
(filename, data)
generators/map/src/demo-region-overlay.mjs:86
↓ 8 callers
Function
distance
(a, b)
orchestrator/src/main-area-points.mjs:410
↓ 8 callers
Method
findPath
( fromX: number, fromY: number, toX: number, toY: number )
client/src/systems/PathfindingManager.ts:39
↓ 8 callers
Method
gridToPixel
(gx: number, gy: number)
client/src/systems/MapManager.ts:131
↓ 8 callers
Method
setMovementAnchor
(anchor: MovementAnchor | null)
client/src/objects/CharacterSprite.ts:399
↓ 7 callers
Function
absoluteTick
(gameTime: GameTime)
server/src/utils/time-helpers.ts:169
↓ 7 callers
Method
applyViewportConstraints
(cam: Phaser.Cameras.Scene2D.Camera)
client/src/systems/CameraController.ts:202
↓ 7 callers
Function
distanceBetweenPoints
(a: MainAreaPointConfig, b: MainAreaPointConfig)
server/src/core/world-manager.ts:970
↓ 7 callers
Function
getRegionId
(region)
orchestrator/src/config-generator.mjs:532
↓ 7 callers
Method
getTimelineDir
(worldDir: string, timelineId: string)
server/src/services/timeline-manager.ts:203
↓ 7 callers
Function
normalizeWorldDesign
(rawDesign)
orchestrator/src/world-design-utils.mjs:237
↓ 7 callers
Function
prettifyToken
(token: string)
client/src/ui/utils/event-format.ts:180
↓ 7 callers
Method
scheduleTickPlaybackCompletionCheck
(delayMs = 0)
client/src/scenes/WorldScene.ts:627
↓ 7 callers
Function
showFlash
(kind: "ok" | "err", text: string)
client/src/ui/panels/GodPanel.tsx:52
↓ 7 callers
Method
stopMoving
()
client/src/objects/CharacterSprite.ts:386
↓ 7 callers
Method
updateDomLabelVisibility
()
client/src/objects/CharacterSprite.ts:592
↓ 6 callers
Function
clampInt
(value, min, max)
orchestrator/src/main-area-points.mjs:418
↓ 6 callers
Method
faceTowards
(otherX: number, otherY: number)
client/src/objects/CharacterSprite.ts:403
↓ 6 callers
Method
getAllLocations
()
server/src/core/world-manager.ts:192
↓ 6 callers
Function
getEmotionLabelSimple
(valence: number, arousal: number)
server/src/llm/prompt-builder.ts:374
↓ 6 callers
Method
getMainAreaPoint
(pointId: string | null | undefined)
server/src/core/world-manager.ts:208
↓ 6 callers
Function
getObjectProperties
(obj)
orchestrator/src/config-generator.mjs:524
↓ 6 callers
Method
getWorldActions
()
server/src/core/world-manager.ts:347
↓ 6 callers
Function
initDatabase
(dbPath?: string)
server/src/store/db.ts:125
↓ 6 callers
Method
initialize
(worldDirPath?: string)
server/src/services/app-context.ts:32
↓ 6 callers
Function
isWalkableTile
(gx, gy, collisionData, gridWidth, gridHeight)
orchestrator/src/main-area-points.mjs:398
↓ 6 callers
Method
listTimelines
(worldDir: string)
server/src/services/timeline-manager.ts:155
↓ 6 callers
Function
resolveStructuredOutputMode
(explicitMode, envMode, fallback = STRUCTURED_OUTPUT_MODES.AUTO)
shared/structured-output.mjs:7
↓ 6 callers
Method
setActionIcon
(emoji: string)
client/src/objects/CharacterSprite.ts:524
↓ 6 callers
Method
setActionLabel
(text: string | null)
client/src/objects/CharacterSprite.ts:530
↓ 6 callers
Method
setCurrentAction
(action: string | null)
client/src/objects/CharacterSprite.ts:395
↓ 6 callers
Method
walkSprite
( sprite: CharacterSprite, path: { x: number; y: number }[], onComplete?: () => void, )
client/src/systems/CharacterMovement.ts:460
↓ 5 callers
Function
drawBoundingBoxes
(imageBuffer, boxes, options = {})
generators/map/src/utils/image-utils.mjs:59
↓ 5 callers
Function
formatActionName
(action: string | undefined)
client/src/ui/utils/event-format.ts:161
↓ 5 callers
Function
getSceneTickLimit
(config?: SceneTimeConfig)
server/src/utils/time-helpers.ts:71
↓ 5 callers
Function
hashString
(value: string)
server/src/core/world-manager.ts:961
↓ 5 callers
Function
logModelCall
(step, model, promptText, imageRefs = [])
generators/map/src/utils/logger.mjs:47
↓ 5 callers
Function
pad
(n: number, len = 2)
server/src/services/timeline-manager.ts:41
↓ 5 callers
Method
randomAmbientDelay
()
client/src/systems/CharacterMovement.ts:258
↓ 5 callers
Method
retrieveMemories
(params: { characterId: string; currentTime: GameTime; contextKeywords: string[]; relatedChara
server/src/core/memory-manager.ts:80
↓ 5 callers
Function
tickToSceneTimeWithPeriod
( tick: number, config?: SceneTimeConfig, )
server/src/utils/time-helpers.ts:146
↓ 5 callers
Function
toStringArray
(value: unknown)
server/src/utils/config-loader.ts:208
↓ 5 callers
Function
toStringArray
(value)
orchestrator/src/config-generator.mjs:843
↓ 5 callers
Function
unique
(values: string[])
server/src/core/world-manager.ts:655
↓ 5 callers
Method
updateDomLabelPosition
()
client/src/objects/CharacterSprite.ts:691
↓ 5 callers
Function
useGoogleNativeProvider
()
generators/map/src/models/gemini-flash-img.mjs:46
↓ 4 callers
Function
actionToEmoji
(action: string | null)
client/src/config/game-config.ts:95
↓ 4 callers
Method
beginRecording
()
server/src/services/app-context.ts:118
↓ 4 callers
Function
buildCharacterNameMap
(characters: CharacterInfo[])
client/src/ui/utils/event-format.ts:49
↓ 4 callers
Function
buildSimulationActivityPayload
()
server/src/api/routes/simulation.ts:81
↓ 4 callers
Function
closeDb
()
server/src/store/db.ts:176
↓ 4 callers
Method
createNewTimeline
()
server/src/services/app-context.ts:90
↓ 4 callers
Method
deleteDialogueSession
(sessionId: string)
server/src/core/world-manager.ts:540
↓ 4 callers
Method
destroy
()
client/src/systems/CameraController.ts:232
↓ 4 callers
Function
distAt
(x, y)
generators/character/src/utils/chromakey.mjs:41
↓ 4 callers
Function
editImage
(text, imageBuffer, { imageSize = "2K", logStep = "flash-img-edit", requestTimeoutMs, timeoutEnvKey } = {})
generators/map/src/models/gemini-flash-img.mjs:160
↓ 4 callers
Method
emitZoom
(zoom: number)
client/src/systems/CameraController.ts:121
↓ 4 callers
Function
extractOption
(flag)
generators/character/src/index.mjs:36
↓ 4 callers
Method
facePair
(a: CharacterSprite, b: CharacterSprite)
client/src/systems/CharacterMovement.ts:455
↓ 4 callers
Function
finish
(error)
orchestrator/src/index.mjs:265
↓ 4 callers
Method
finishError
(job: ActiveJob, message: string)
server/src/core/create-job-manager.ts:424
↓ 4 callers
Function
formatWorldSocialContext
(context?: string)
server/src/llm/prompt-builder.ts:450
↓ 4 callers
Function
fromCompressedToWorld
(coord)
generators/map/src/index.mjs:172
↓ 4 callers
Method
getCellKey
(gx: number, gy: number)
client/src/systems/MapManager.ts:551
↓ 4 callers
Method
getMainAreaPlacement
( pointId: string, characterId: string, options: { occupantIds?: string[]; } = {}, )
client/src/systems/MapManager.ts:216
↓ 4 callers
Method
getPreferredSpawnMainAreaPoints
()
server/src/core/world-manager.ts:395
↓ 4 callers
Method
getRandomWalkablePointInLocation
( locationId: string, options: { preferInset?: boolean } = {}, )
client/src/systems/MapManager.ts:170
↓ 4 callers
Method
getStep
(from: GridPoint, to: GridPoint)
client/src/systems/PathfindingManager.ts:399
next →
1–100 of 1,010, ranked by callers