MCPcopy Create free account

hub / github.com/blendi-remade/isometric-city-fal / functions

Functions895 in github.com/blendi-remade/isometric-city-fal

↓ 2 callersFunctioncheckCitySize
* Check if compressed data exceeds the size limit * @throws CitySizeLimitError if size exceeds limit
src/lib/multiplayer/database.ts:69
↓ 2 callersFunctionclamp
(value: number, min: number, max: number)
src/context/GameContext.tsx:126
↓ 2 callersFunctionclearAirCanvas
()
src/components/game/CanvasIsometricGrid.tsx:2519
↓ 2 callersFunctionclearGameState
()
src/context/GameContext.tsx:416
↓ 2 callersFunctionclearSavedCityStorage
()
src/context/GameContext.tsx:543
↓ 2 callersFunctioncoastNoise
(x: number, y: number)
src/lib/simulation.ts:277
↓ 2 callersFunctioncollectConnectedTrack
* Collect a single connected component of track tiles starting from a given tile. * Returns tiles in connected order following track connections. *
src/context/CoasterContext.tsx:663
↓ 2 callersFunctioncountRailTiles
( grid: Tile[][], gridSize: number )
src/components/game/railSystem.ts:1762
↓ 2 callersFunctioncreateBoolGrid
()
src/lib/simulation.ts:1094
↓ 2 callersFunctioncreateBoolGrid
()
src/context/GameContext.tsx:1327
↓ 2 callersFunctioncreateDefaultTrain
(config: TrainConfig = {})
src/context/CoasterContext.tsx:1014
↓ 2 callersFunctioncreateInitialGameState
(parkName: string = 'My Theme Park', gridSize: number = DEFAULT_GRID_SIZE)
src/context/CoasterContext.tsx:347
↓ 2 callersFunctioncreateInitialWeather
(month: number)
src/context/CoasterContext.tsx:43
↓ 2 callersFunctioncreateMultiplayerProvider
( options: MultiplayerProviderOptions )
src/lib/multiplayer/supabaseProvider.ts:324
↓ 2 callersFunctioncreateServiceCoverage
(size: number)
src/lib/simulation.ts:1084
↓ 2 callersFunctioncreateServiceGrid
()
src/context/GameContext.tsx:1318
↓ 2 callersFunctiondecompressSavedCity
(saved: string)
src/context/GameContext.tsx:494
↓ 2 callersFunctiondeleteCoasterStateFromStorage
(key: string)
src/games/coaster/saveUtils.ts:124
↓ 2 callersMethoddestroy
()
src/lib/multiplayer/supabaseProvider.ts:302
↓ 2 callersFunctiondirectionFromDelta
(dx: number, dy: number)
src/components/coaster/CoasterGrid.tsx:1761
↓ 2 callersFunctiondrawBeachOnWater
( ctx: CanvasRenderingContext2D, x: number, y: number, adjacentLand: { north: boolean; east: boolean;
src/components/game/drawing.ts:673
↓ 2 callersFunctiondrawConnectorFill
(connectorEdge: { x: number; y: number }, extensionDir: number)
src/components/game/bridgeDrawing.ts:365
↓ 2 callersFunctiondrawFallbackAirplane
* Fallback airplane drawing when sprite is not available
src/components/game/drawAircraft.ts:487
↓ 2 callersFunctiondrawFallbackSeaplane
* Fallback seaplane drawing when sprite is not available
src/components/game/drawAircraft.ts:1251
↓ 2 callersFunctiondrawFoundationPlot
( ctx: CanvasRenderingContext2D, x: number, y: number, w: number, h: number, currentZoom: number )
src/components/game/drawing.ts:225
↓ 2 callersFunctiondrawGatePost
* Draw a single gate post/pillar
src/components/coaster/CoasterGrid.tsx:629
↓ 2 callersFunctiondrawGreyBaseTiles
( ctx: CanvasRenderingContext2D, gridX: number, gridY: number, width: number, height: number, zoom
src/components/coaster/CoasterGrid.tsx:728
↓ 2 callersFunctiondrawIsometricDiamond
( ctx: CanvasRenderingContext2D, x: number, y: number, colors: TileColorScheme, options: { drawS
src/components/game/drawing.ts:124
↓ 2 callersFunctiondrawMedian
( ctx: CanvasRenderingContext2D, startX: number, startY: number, endX: number, endY: number, media
src/components/game/trafficSystem.ts:486
↓ 2 callersFunctiondrawPuff
(ctx: CanvasRenderingContext2D, x: number, y: number, radius: number, stretchX: number, stretchY: number, grad
src/components/game/effectsSystems.ts:958
↓ 2 callersFunctiondrawPuff
( ctx: CanvasRenderingContext2D, x: number, y: number, radius: number, stretchX: number,
src/components/coaster/cloudSystem.ts:382
↓ 2 callersFunctiondrawRoadArrow
( ctx: CanvasRenderingContext2D, x: number, y: number, direction: 'north' | 'south' | 'east' | 'west',
src/components/game/trafficSystem.ts:612
↓ 2 callersFunctiondrawShopperQueuing
* Draw a shopper walking from road to shop entrance
src/components/game/drawPedestrians.ts:1312
↓ 2 callersFunctiondrawSingleCurveTies
( from: { x: number; y: number }, to: { x: number; y: number }, control: { x: number; y: number },
src/components/game/railSystem.ts:604
↓ 2 callersFunctiondrawSingleCurvedBallast
( from: { x: number; y: number }, to: { x: number; y: number }, control: { x: number; y: number },
src/components/game/railSystem.ts:348
↓ 2 callersFunctiondrawSingleCurvedInsetRails
( from: { x: number; y: number }, to: { x: number; y: number }, control: { x: number; y: number },
src/components/game/railSystem.ts:1205
↓ 2 callersFunctiondrawSingleCurvedRails
( from: { x: number; y: number }, to: { x: number; y: number }, control: { x: number; y: number },
src/components/game/railSystem.ts:837
↓ 2 callersFunctiondrawSingleStraightBallast
( from: { x: number; y: number }, to: { x: number; y: number }, perp: { x: number; y: number } )
src/components/game/railSystem.ts:316
↓ 2 callersFunctiondrawSingleStraightInsetRails
( from: { x: number; y: number }, to: { x: number; y: number }, perp: { x: number; y: number } )
src/components/game/railSystem.ts:1154
↓ 2 callersFunctiondrawSingleStraightRails
( from: { x: number; y: number }, to: { x: number; y: number }, perp: { x: number; y: number } )
src/components/game/railSystem.ts:788
↓ 2 callersFunctiondrawSingleTrackTies
( from: { x: number; y: number }, to: { x: number; y: number }, tieDir: { x: number; y: number },
src/components/game/railSystem.ts:566
↓ 2 callersFunctiondrawSprite
( ctx: CanvasRenderingContext2D, spriteSheets: Map<string, HTMLCanvasElement>, buildingType: string, x
src/components/coaster/CoasterGrid.tsx:1394
↓ 2 callersFunctiondrawStraightTrack
( ctx: CanvasRenderingContext2D, startX: number, startY: number, direction: TrackDirection, height:
src/components/coaster/tracks/trackDrawing.ts:352
↓ 2 callersFunctiondrawSuspensionBridgeTowers
( ctx: CanvasRenderingContext2D, x: number, y: number, building: Building, currentZoom: number )
src/components/game/bridgeDrawing.ts:765
↓ 2 callersFunctiondrawTie
( tieX: number, tieY: number, tieDir: { x: number; y: number }, tiePerpDir: { x: number; y: nu
src/components/game/railSystem.ts:545
↓ 2 callersFunctiondrawWaterTileAt
(ctx: CanvasRenderingContext2D, screenX: number, screenY: number, gridX: number, gridY: number)
src/components/game/CanvasIsometricGrid.tsx:1272
↓ 2 callersFunctionexpandBoolGrid
(oldGrid: boolean[][])
src/context/GameContext.tsx:1357
↓ 2 callersFunctionfindConnectedBridgeTiles
* Find all bridge tiles that are part of the same bridge as the tile at (x, y). * Bridges are connected along their orientation axis (ns or ew).
src/lib/simulation.ts:2932
↓ 2 callersFunctionfindRailroadCrossings
(grid: Tile[][], gridSize: number)
src/components/game/railSystem.ts:1445
↓ 2 callersFunctionfindRideDestination
(grid: Tile[][], guest: Guest)
src/components/coaster/guests/guestSystem.ts:397
↓ 2 callersFunctiongenerateTourWaypoints
( grid: Tile[][], gridSize: number, startTileX: number, startTileY: number )
src/components/game/gridFinders.ts:732
↓ 2 callersFunctiongenerateUUID
()
src/lib/simulation.ts:1114
↓ 2 callersFunctiongetBridgeDeckColor
(isRailBridge: boolean, style: BridgeStyle)
src/components/game/bridgeDrawing.ts:84
↓ 2 callersFunctiongetCoasterCategory
(coasterType: CoasterType)
src/games/coaster/types/tracks.ts:182
↓ 2 callersFunctiongetConstructionSpeed
(buildingType: BuildingType)
src/lib/simulation.ts:2479
↓ 2 callersFunctiongetOffsetForDirection
(dir: CarDirection)
src/components/game/trainSystem.ts:1088
↓ 2 callersFunctiongetPlaneSprite
* Get sprite coordinates for a plane type and direction * For seaplanes, uses special overrides to avoid using col 1 (NE asset)
src/components/game/drawAircraft.ts:135
↓ 2 callersFunctiongetRotationOffset
* Calculate the rotation offset needed to fine-tune sprite to exact angle * Uses the baseAngle from the sprite config which accounts for the actual s
src/components/game/drawAircraft.ts:116
↓ 2 callersFunctiongetSpriteInfo
( buildingType: string, pack: CoasterSpritePack = COASTER_SPRITE_PACK )
src/games/coaster/lib/coasterRenderConfig.ts:614
↓ 2 callersFunctiongetSpriteRect
( sheet: SpriteSheet, sprite: SpriteMapping, sheetWidth: number, sheetHeight: number )
src/games/coaster/lib/coasterRenderConfig.ts:630
↓ 2 callersFunctiongetTemperatureForWeather
(weather: WeatherType, month: number)
src/context/CoasterContext.tsx:83
↓ 2 callersFunctiongetTrafficFlowDirection
( mergeInfo: MergedRoadInfo )
src/components/game/trafficSystem.ts:652
↓ 2 callersFunctiongetTrainFrontPosition
* Calculate effective position of a train's front (locomotive) in continuous tile coordinates
src/components/game/trainSystem.ts:489
↓ 2 callersFunctiongetWaterAdjacency
( grid: Tile[][], x: number, y: number, width: number, height: number, gridSize: number )
src/lib/simulation.ts:570
↓ 2 callersFunctionhandleArrivalAtDestination
( ped: Pedestrian, grid: Tile[][], gridSize: number )
src/components/game/pedestrianSystem.ts:243
↓ 2 callersFunctionhasRoadAccess
( grid: Tile[][], x: number, y: number, size: number, maxDistance: number = 8 )
src/lib/simulation.ts:1402
↓ 2 callersFunctionhasRoadAtEdge
(grid: Tile[][], gridSize: number, direction: 'north' | 'south' | 'east' | 'west')
src/lib/simulation.ts:424
↓ 2 callersFunctionhasSavedGame
()
src/app/page.tsx:69
↓ 2 callersFunctionheightSorted
(list: AdjacentCandidate[])
src/context/CoasterContext.tsx:2005
↓ 2 callersMethodinsert
(entity: T)
src/lib/performanceUtils.ts:34
↓ 2 callersFunctionisPositionAtStation
(progress: number)
src/context/CoasterContext.tsx:1512
↓ 2 callersFunctionisShopBuilding
(buildingType: BuildingType)
src/components/game/pedestrianSystem.ts:158
↓ 2 callersFunctionisTypingTarget
(target: EventTarget | null)
src/components/game/CanvasIsometricGrid.tsx:616
↓ 2 callersFunctionloadCityState
(cityId: string)
src/context/GameContext.tsx:622
↓ 2 callersFunctionloadImageDirect
* Load an image directly without WebP optimization * @param src The image source path * @returns Promise resolving to the loaded image
src/components/game/imageLoader.ts:98
↓ 2 callersFunctionneedsGreyBase
(type: string | undefined)
src/components/coaster/CoasterGrid.tsx:699
↓ 2 callersFunctionnormalizeTrainsForTrackChange
* Normalize train positions when track length changes. * Ensures cars maintain proper spacing and positions are valid for the new track length. * Re
src/context/CoasterContext.tsx:977
↓ 2 callersFunctionpickNextDirection
* Pick next direction for train based on track geometry * Trains can only turn at curve tiles - at junctions they must go straight
src/components/game/trainSystem.ts:582
↓ 2 callersFunctionplaceBuilding
( state: GameState, x: number, y: number, buildingType: BuildingType | null, zone: ZoneType | null )
src/lib/simulation.ts:2692
↓ 2 callersFunctionsaveCityState
(cityId: string, state: GameState)
src/context/GameContext.tsx:617
↓ 2 callersFunctionsaveCityToIndex
(state: GameState, roomCode?: string)
src/app/page.tsx:116
↓ 2 callersFunctionsaveCityToIndex
(state: GameState, roomCode?: string)
src/app/coop/[roomCode]/page.tsx:16
↓ 2 callersFunctionsaveCoasterStateToStorage
(key: string, state: GameState)
src/games/coaster/saveUtils.ts:98
↓ 2 callersFunctionsaveCoasterStateToStorageAsync
(key: string, state: GameState)
src/games/coaster/saveUtils.ts:113
↓ 2 callersFunctionsaveGameState
(state: GameState, callback?: () => void)
src/context/GameContext.tsx:409
↓ 2 callersFunctionscreenToGrid
( screenX: number, screenY: number, offsetX: number, offsetY: number )
src/components/coaster/CoasterGrid.tsx:144
↓ 2 callersFunctionseededRandom
(seed: number)
src/components/coaster/CoasterGrid.tsx:1386
↓ 2 callersFunctionseededRandomQueue
(seed: number)
src/components/coaster/CoasterGrid.tsx:993
↓ 2 callersFunctionselectSpriteSource
( buildingType: BuildingType, building: Building, tileX: number, tileY: number, activePack: SpritePa
src/components/game/buildingSprite.ts:76
↓ 2 callersFunctionserializeAndCompressForDBAsync
(state: unknown)
src/lib/saveWorkerManager.ts:218
↓ 2 callersFunctionsetActiveSpritePack
(pack: SpritePack)
src/lib/renderConfig.ts:773
↓ 2 callersFunctionshrinkBoolGrid
(oldGrid: boolean[][])
src/context/GameContext.tsx:1456
↓ 2 callersMethodupdateGameState
* Update the game state and save to database (throttled)
src/lib/multiplayer/supabaseProvider.ts:253
↓ 2 callersFunctionupdatePlayerCount
( roomCode: string, count: number )
src/lib/multiplayer/database.ts:221
↓ 2 callersFunctionupgradeServiceBuilding
(state: GameState, x: number, y: number)
src/lib/simulation.ts:1309
↓ 2 callersFunctionuseMultiplayer
()
src/context/MultiplayerContext.tsx:270
↓ 1 callersFunctionanalyzeContentBounds
(img: HTMLImageElement)
src/components/game/imageLoader.ts:293
↓ 1 callersFunctionanalyzePathForBridges
()
src/components/game/CanvasIsometricGrid.tsx:2410
↓ 1 callersFunctionapplyWeatherEffectsToGuest
(guest: Guest, weather: WeatherType)
src/context/CoasterContext.tsx:129
↓ 1 callersFunctionassignPath
(guest: Guest, path: { x: number; y: number }[])
src/components/coaster/guests/guestSystem.ts:409
← previousnext →201–300 of 895, ranked by callers