MCPcopy Create free account

hub / github.com/amilich/isometric-city / functions

Functions927 in github.com/amilich/isometric-city

↓ 76 callersMethodhas
(key: K)
src/lib/performanceUtils.ts:279
↓ 51 callersMethodget
(key: K)
src/lib/performanceUtils.ts:255
↓ 51 callersFunctiongridToScreen
(x: number, y: number, offsetX: number, offsetY: number)
src/components/game/utils.ts:405
↓ 44 callersFunctionjitter
(base: number, range: number)
src/components/game/effectsSystems.ts:651
↓ 40 callersFunctionoffsetPoint
Offset a point along a perpendicular direction
src/components/game/railSystem.ts:279
↓ 40 callersMethodset
(key: K, value: V)
src/lib/performanceUtils.ts:265
↓ 39 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 31 callersFunctiongetBuildingSize
(buildingType: BuildingType)
src/lib/simulation.ts:2552
↓ 28 callersFunctioncreateBuilding
(type: BuildingType)
src/lib/simulation.ts:769
↓ 25 callersFunctiongetTileHeight
(w: number)
src/components/buildings/IsometricBuildings.tsx:21
↓ 23 callersFunctionjitter
(base: number, range: number)
src/components/coaster/cloudSystem.ts:135
↓ 22 callersMethodclear
()
src/lib/performanceUtils.ts:283
↓ 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:131
↓ 18 callersFunctionuseGame
()
src/context/GameContext.tsx:1683
↓ 14 callersFunctionhasRoad
(gridX: number, gridY: number)
src/components/game/CanvasIsometricGrid.tsx:1079
↓ 14 callersFunctionloadSpriteImage
(src: string, applyFilter: boolean = true)
src/components/game/imageLoader.ts:210
↓ 14 callersFunctionuseCoaster
()
src/context/CoasterContext.tsx:3583
↓ 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:850
↓ 13 callersFunctionhandleToolSelect
(tool: Tool, closeMenu: boolean = false)
src/components/mobile/MobileToolbar.tsx:266
↓ 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:424
↓ 11 callersFunctionloadExampleState
( filename: string, loadState: (stateString: string) => boolean, setActivePanel: (panel: 'none' | 'budge
src/components/game/panels/SettingsPanel.tsx:97
↓ 11 callersFunctionperlinNoise
(x: number, y: number, seed: number, octaves: number = 4)
src/lib/simulation.ts:128
↓ 10 callersFunctionclampHeight
(height: number)
src/context/CoasterContext.tsx:454
↓ 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:1299
↓ 10 callersFunctionrotateDirection
(direction: TrackDirection, turn: 'left' | 'right')
src/context/CoasterContext.tsx:440
↓ 9 callersMethoddispatchAction
(action: GameActionInput)
src/lib/multiplayer/supabaseProvider.ts:233
↓ 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:3712
↓ 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:97
↓ 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:214
↓ 8 callersFunctionhasPath
(gx: number, gy: number)
src/components/coaster/CoasterGrid.tsx:795
↓ 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:3975
↓ 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
↓ 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 callersFunctiondrawRiders
( ctx: CanvasRenderingContext2D, riderPositions: { rx: number; ry: number }[], guestCount: number, car
src/components/coaster/CoasterGrid.tsx:1912
↓ 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:2922
↓ 7 callersFunctionfindNearestRoadToBuilding
( gridData: Tile[][], gridSizeValue: number, buildingX: number, buildingY: number )
src/components/game/utils.ts:127
↓ 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:1059
↓ 7 callersFunctionisRailTile
(grid: Tile[][], gridSize: number, x: number, y: number)
src/components/game/railSystem.ts:164
↓ 7 callersFunctionuseMultiplayerOptional
()
src/context/MultiplayerContext.tsx:279
↓ 7 callersFunctionwithRange
( range: R, extra: T )
src/lib/simulation.ts:1224
↓ 6 callersFunctioncreateAdvancedBuilding
(type: BuildingType)
src/lib/simulation.ts:3243
↓ 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 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:464
↓ 6 callersFunctiongetActiveSpritePack
()
src/lib/renderConfig.ts:777
↓ 6 callersFunctiongetAdjacentRoads
( grid: Tile[][], gridSize: number, x: number, y: number )
src/components/game/trafficSystem.ts:115
↓ 6 callersFunctiongetCachedImage
(src: string, filtered: boolean = false)
src/components/game/imageLoader.ts:243
↓ 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:135
↓ 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:147
↓ 6 callersFunctionreadSavedParksIndex
()
src/games/coaster/saveUtils.ts:39
↓ 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:948
↓ 5 callersFunctiondarkenColor
(hex: string, factor: number = 0.2)
src/components/coaster/CoasterGrid.tsx:1904
↓ 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 callersFunctiondrawHighlight
(screenX: number, screenY: number, color: string = 'rgba(255, 255, 255, 0.25)', strokeColor: string = '#ffffff
src/components/game/CanvasIsometricGrid.tsx:2194
↓ 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 callersFunctiongetTrackPoint
* Get a point along a track piece at parameter t (0 to 1) * Uses the SAME geometry as the track drawing functions
src/components/coaster/CoasterGrid.tsx:1602
↓ 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:92
↓ 5 callersFunctionpickNextWeather
(current: WeatherType, month: number)
src/context/CoasterContext.tsx:61
↓ 5 callersFunctionsaveCoasterStateToStorage
(key: string, state: GameState)
src/games/coaster/saveUtils.ts:115
↓ 5 callersFunctionuseMobile
()
src/hooks/useMobile.ts:17
↓ 5 callersFunctionwriteSavedParksIndex
(parks: SavedParkMeta[])
src/games/coaster/saveUtils.ts:51
↓ 4 callersFunctionaddCenterPosts
(dirDx: number, dirDy: number)
src/components/coaster/CoasterGrid.tsx:1229
↓ 4 callersFunctionbuildSavedParkMeta
(state: GameState, savedAt: number = Date.now(), roomCode?: string)
src/games/coaster/saveUtils.ts:23
↓ 4 callersFunctionbulldozeTile
(state: GameState, x: number, y: number)
src/lib/simulation.ts:3064
↓ 4 callersFunctioncalculateAverageCoverage
(coverage: number[][])
src/lib/simulation.ts:1952
↓ 4 callersFunctioncreateDirectionMeta
(step: { x: number; y: number }, vec: { dx: number; dy: number })
src/components/game/constants.ts:258
↓ 4 callersFunctioncreateGrid
()
src/lib/simulation.ts:1128
next →1–100 of 927, ranked by callers