MCPcopy Create free account

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

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

↓ 76 callersMethodhas
(key: K)
src/lib/performanceUtils.ts:279
↓ 52 callersFunctiongridToScreen
(x: number, y: number, offsetX: number, offsetY: number)
src/components/game/utils.ts:405
↓ 50 callersMethodget
(key: K)
src/lib/performanceUtils.ts:255
↓ 44 callersFunctionjitter
(base: number, range: number)
src/components/game/effectsSystems.ts:651
↓ 41 callersMethodset
(key: K, value: V)
src/lib/performanceUtils.ts:265
↓ 40 callersFunctionoffsetPoint
Offset a point along a perpendicular direction
src/components/game/railSystem.ts:279
↓ 36 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 29 callersFunctiongetBuildingSize
(buildingType: BuildingType)
src/lib/simulation.ts:2473
↓ 28 callersFunctioncreateBuilding
(type: BuildingType)
src/lib/simulation.ts:727
↓ 25 callersFunctiongetTileHeight
(w: number)
src/components/buildings/IsometricBuildings.tsx:21
↓ 23 callersMethodclear
()
src/lib/performanceUtils.ts:283
↓ 23 callersFunctionjitter
(base: number, range: number)
src/components/coaster/cloudSystem.ts:135
↓ 22 callersFunctionisRoad
* Check if a tile is a road or road bridge (not rail bridge)
src/components/game/trafficSystem.ts:101
↓ 22 callersFunctionisRoadTile
(gridData: Tile[][], gridSizeValue: number, x: number, y: number)
src/components/game/utils.ts:21
↓ 20 callersFunctionisOuterEdge
(edgeDir: 'north' | 'east' | 'south' | 'west')
src/components/game/roadDrawing.ts:130
↓ 18 callersFunctionuseGame
()
src/context/GameContext.tsx:1765
↓ 14 callersFunctionhasRoad
(gridX: number, gridY: number)
src/components/game/CanvasIsometricGrid.tsx:1088
↓ 14 callersFunctionloadSpriteImage
(src: string, applyFilter: boolean = true)
src/components/game/imageLoader.ts:240
↓ 13 callersFunctiondrawDoubleStraightBallast
( from: { x: number; y: number }, to: { x: number; y: number }, perp: { x: number; y: number } )
src/components/game/railSystem.ts:331
↓ 13 callersFunctiondrawDoubleStraightInsetRails
( from: { x: number; y: number }, to: { x: number; y: number }, perp: { x: number; y: number } )
src/components/game/railSystem.ts:1190
↓ 13 callersFunctiondrawDoubleStraightRails
( from: { x: number; y: number }, to: { x: number; y: number }, perp: { x: number; y: number } )
src/components/game/railSystem.ts:822
↓ 13 callersFunctiondrawDoubleTies
( from: { x: number; y: number }, to: { x: number; y: number }, tieDir: { x: number; y: number },
src/components/game/railSystem.ts:585
↓ 13 callersFunctionfindPathOnRoads
( gridData: Tile[][], gridSizeValue: number, startX: number, startY: number, targetX: number, targ
src/components/game/utils.ts:232
↓ 13 callersFunctiongetDirectionToTile
(fromX: number, fromY: number, toX: number, toY: number)
src/components/game/utils.ts:392
↓ 13 callersFunctiongetPerp
(dx: number, dy: number)
src/components/coaster/CoasterGrid.tsx:848
↓ 12 callersFunctiondrawDoubleCurveTies
( from: { x: number; y: number }, to: { x: number; y: number }, control: { x: number; y: number },
src/components/game/railSystem.ts:633
↓ 12 callersFunctiondrawDoubleCurvedBallast
( from: { x: number; y: number }, to: { x: number; y: number }, control: { x: number; y: number },
src/components/game/railSystem.ts:378
↓ 12 callersFunctiondrawDoubleCurvedInsetRails
( from: { x: number; y: number }, to: { x: number; y: number }, control: { x: number; y: number },
src/components/game/railSystem.ts:1259
↓ 12 callersFunctiondrawDoubleCurvedRails
( from: { x: number; y: number }, to: { x: number; y: number }, control: { x: number; y: number },
src/components/game/railSystem.ts:889
↓ 11 callersFunctioncreateEmptyBuilding
()
src/games/coaster/types/game.ts:526
↓ 11 callersFunctiongenerateUUID
()
src/context/CoasterContext.tsx:267
↓ 11 callersFunctionloadExampleState
( filename: string, loadState: (stateString: string) => boolean, setActivePanel: (panel: 'none' | 'budge
src/components/game/panels/SettingsPanel.tsx:97
↓ 10 callersFunctionclampHeight
(height: number)
src/context/CoasterContext.tsx:291
↓ 10 callersFunctioncreateTrainsForCoaster
* Create multiple trains for a coaster based on track length and coaster type * Uses the coaster type stats to determine min/max trains and scales by
src/context/CoasterContext.tsx:1046
↓ 10 callersFunctionperlinNoise
(x: number, y: number, seed: number, octaves: number = 4)
src/lib/simulation.ts:86
↓ 10 callersFunctionrotateDirection
(direction: TrackDirection, turn: 'left' | 'right')
src/context/CoasterContext.tsx:277
↓ 9 callersFunctiondrawCenterBallast
()
src/components/game/railSystem.ts:401
↓ 9 callersFunctionformatCurrency
(value: number)
src/components/coaster/panels/Panels.tsx:13
↓ 9 callersFunctionisOldWater
(oldX: number, oldY: number)
src/lib/simulation.ts:3669
↓ 9 callersFunctionloadSheet
(src: string | undefined, key: string)
src/components/game/panels/SpriteTestPanel.tsx:27
↓ 9 callersFunctionnoise2D
(x: number, y: number, seed: number = 42)
src/lib/simulation.ts:55
↓ 8 callersFunctiondrawBufferStop
* Draw a buffer stop at track terminus (smaller for double track)
src/components/game/railSystem.ts:1005
↓ 8 callersFunctiondrawCrossingGate
( ctx: CanvasRenderingContext2D, x: number, y: number, position: 'nw' | 'ne' | 'sw' | 'se', gateAngl
src/components/game/railSystem.ts:1576
↓ 8 callersFunctiondrawCrossingSignal
( ctx: CanvasRenderingContext2D, x: number, y: number, position: 'nw' | 'ne' | 'sw' | 'se', flashTim
src/components/game/railSystem.ts:1495
↓ 8 callersFunctiondrawTrafficLight
( ctx: CanvasRenderingContext2D, x: number, y: number, lightState: TrafficLightState, position: 'nw'
src/components/game/trafficSystem.ts:367
↓ 8 callersFunctiongetShortenedInnerEndpoint
(cornerX: number, cornerY: number, otherCornerX: number, otherCornerY: number, inwardDx: number, inwardDy: num
src/components/game/roadDrawing.ts:213
↓ 8 callersFunctionhandleToolSelect
(tool: Tool, closeMenu: boolean = false)
src/components/mobile/MobileToolbar.tsx:266
↓ 8 callersFunctionhasPath
(gx: number, gy: number)
src/components/coaster/CoasterGrid.tsx:793
↓ 8 callersFunctionhasRailAtPosition
* Check if a tile has rail (either pure rail tile, road with rail overlay, rail bridge, OR part of rail station)
src/components/game/railSystem.ts:199
↓ 8 callersFunctionisExpansionTile
(x: number, y: number)
src/lib/simulation.ts:3932
↓ 8 callersFunctionisRoad
(checkX: number, checkY: number)
src/components/game/buildingHelpers.ts:113
↓ 8 callersFunctionisWater
(x: number, y: number)
src/components/game/buildingHelpers.ts:51
↓ 8 callersFunctiontoIso
(localX: number, localY: number, localZ: number)
src/components/coaster/tracks/trackDrawing.ts:766
↓ 8 callersFunctionuseCoaster
()
src/context/CoasterContext.tsx:3287
↓ 7 callersFunctiondrawHair
* Draw hair/ponytail on a pedestrian * @param pedId - Pedestrian ID for consistent hair color (avoids flickering)
src/components/game/drawPedestrians.ts:42
↓ 7 callersFunctiondrawTower
* Draw a bridge tower
src/components/game/bridgeSystem.ts:817
↓ 7 callersFunctionfindBuildingOrigin
( grid: Tile[][], x: number, y: number, gridSize: number )
src/lib/simulation.ts:2843
↓ 7 callersFunctionfindNearestRoadToBuilding
( gridData: Tile[][], gridSizeValue: number, buildingX: number, buildingY: number )
src/components/game/utils.ts:127
↓ 7 callersFunctiongetCachedImage
(src: string, filtered: boolean = false)
src/components/game/imageLoader.ts:273
↓ 7 callersFunctiongetDirectionOptions
(gridData: Tile[][], gridSizeValue: number, x: number, y: number)
src/components/game/utils.ts:58
↓ 7 callersFunctioninsertionSortByDepth
(arr: T[])
src/components/game/CanvasIsometricGrid.tsx:1068
↓ 7 callersFunctionisRailTile
(grid: Tile[][], gridSize: number, x: number, y: number)
src/components/game/railSystem.ts:164
↓ 7 callersFunctionwithRange
( range: R, extra: T )
src/lib/simulation.ts:1182
↓ 6 callersFunctioncreateAdvancedBuilding
(type: BuildingType)
src/lib/simulation.ts:3200
↓ 6 callersFunctioncreatePedestrian
( id: number, homeX: number, homeY: number, destX: number, destY: number, destType: PedestrianDest
src/components/game/pedestrianSystem.ts:177
↓ 6 callersFunctiondarkenColor
* Darken a color by a percentage
src/components/game/trainSystem.ts:1599
↓ 6 callersMethoddispatchAction
(action: GameActionInput)
src/lib/multiplayer/supabaseProvider.ts:233
↓ 6 callersFunctiondrawHighlight
(screenX: number, screenY: number, color: string = 'rgba(255, 255, 255, 0.25)', strokeColor: string = '#ffffff
src/components/game/CanvasIsometricGrid.tsx:2301
↓ 6 callersFunctionfindStationTile
* Find the best station tile for a coaster - prioritizes tiles with adjacent queue lines * Falls back to first track tile if no queue-adjacent tile i
src/context/CoasterContext.tsx:301
↓ 6 callersFunctiongetActiveSpritePack
()
src/lib/renderConfig.ts:777
↓ 6 callersFunctiongetAdjacentRoads
( grid: Tile[][], gridSize: number, x: number, y: number )
src/components/game/trafficSystem.ts:115
↓ 6 callersFunctiongetMeta
(property: string)
src/app/thumbnail/page.tsx:121
↓ 6 callersFunctiongetRandomActivityOffset
()
src/components/game/pedestrianSystem.ts:166
↓ 6 callersFunctiongridToScreen
( gridX: number, gridY: number, offsetX: number, offsetY: number )
src/components/coaster/CoasterGrid.tsx:133
↓ 6 callersFunctionisRailStationTile
(grid: Tile[][], gridSize: number, x: number, y: number)
src/components/game/railSystem.ts:176
↓ 6 callersFunctionlakeNoise
(x: number, y: number)
src/lib/simulation.ts:105
↓ 5 callersFunctioncollectCoasterTrack
* Collect all track tiles for a coaster from the grid. * Returns tiles in connected order following the track direction.
src/context/CoasterContext.tsx:778
↓ 5 callersFunctiondrawConcreteFoundation
* Draw an isometric concrete foundation block * Creates a 3D block with top, left, and right faces for a solid foundation look
src/components/coaster/tracks/trackDrawing.ts:750
↓ 5 callersFunctionformatBytes
* Format bytes to human readable string
scripts/compress-images.mjs:48
↓ 5 callersFunctiongetSpriteCoords
( buildingType: string, spriteSheetWidth: number, spriteSheetHeight: number, pack?: SpritePack )
src/lib/renderConfig.ts:819
↓ 5 callersFunctiongetTilePoints
(w: number, yOffset: number = 0)
src/components/buildings/IsometricBuildings.tsx:24
↓ 5 callersFunctiongetTrafficLightState
(time: number)
src/components/game/trafficSystem.ts:331
↓ 5 callersFunctionhasRoadAtPosition
* Check if a tile has road at position (for crossing detection)
src/components/game/railSystem.ts:1383
↓ 5 callersFunctionisRailroadCrossing
(grid: Tile[][], gridSize: number, x: number, y: number)
src/components/game/railSystem.ts:1412
↓ 5 callersFunctionloadCoasterStateFromStorage
(key: string)
src/games/coaster/saveUtils.ts:75
↓ 5 callersFunctionloadImage
(src: string)
src/components/game/imageLoader.ts:125
↓ 5 callersFunctionpickNextWeather
(current: WeatherType, month: number)
src/context/CoasterContext.tsx:57
↓ 5 callersFunctionreadSavedParksIndex
()
src/games/coaster/saveUtils.ts:37
↓ 4 callersFunctionaddCenterPosts
(dirDx: number, dirDy: number)
src/components/coaster/CoasterGrid.tsx:1227
↓ 4 callersFunctioncalculateAverageCoverage
(coverage: number[][])
src/lib/simulation.ts:1910
↓ 4 callersFunctioncreateDirectionMeta
(step: { x: number; y: number }, vec: { dx: number; dy: number })
src/components/game/constants.ts:258
↓ 4 callersFunctioncreateGrid
()
src/lib/simulation.ts:1086
↓ 4 callersFunctioncreateInitialGameState
(size: number = DEFAULT_GRID_SIZE, cityName: string = 'New City')
src/lib/simulation.ts:1126
↓ 4 callersFunctioncreateTile
(x: number, y: number, buildingType: BuildingType = 'grass')
src/lib/simulation.ts:710
↓ 4 callersFunctiondrawBeachCorner
* Draw a corner piece where two beach edges meet.
src/components/game/drawing.ts:401
↓ 4 callersFunctiondrawBeachCornerOnWater
* Draw corner piece for beach on water tile.
src/components/game/drawing.ts:637
↓ 4 callersFunctiondrawBeachEdge
* Draw a beach strip along one edge of a tile. * @param ctx - Canvas context * @param startX - Start X coordinate * @param startY - Start Y coordin
src/components/game/drawing.ts:312
↓ 4 callersFunctiondrawBeachEdgeOnWater
* Draw a beach edge on a water tile (beach strip at the edge facing land). * The beach is drawn FROM the edge INWARD toward the water center.
src/components/game/drawing.ts:579
↓ 4 callersFunctiondrawBuilding
(ctx: CanvasRenderingContext2D, x: number, y: number, tile: Tile)
src/components/game/CanvasIsometricGrid.tsx:1330
↓ 4 callersFunctiondrawBuildingConnector
( dirDx: number, dirDy: number, edgeX: number, edgeY: number )
src/components/coaster/CoasterGrid.tsx:908
next →1–100 of 895, ranked by callers