MCPcopy Create free account

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

Functions927 in github.com/amilich/isometric-city

↓ 3 callersMethodupdateConnectionStatus
()
src/lib/multiplayer/supabaseProvider.ts:290
↓ 3 callersFunctionupdateExistingSmoke
* Update existing smoke particles (movement, aging, culling)
src/components/game/trainSystem.ts:995
↓ 3 callersMethodupdateGameState
* Update the game state and save to database (throttled)
src/lib/multiplayer/supabaseProvider.ts:253
↓ 2 callersFunctionadjustColorBrightness
* Adjust color brightness
src/components/game/drawPedestrians.ts:1702
↓ 2 callersFunctionanalyzeMergedRoad
( grid: Tile[][], gridSize: number, x: number, y: number )
src/components/game/trafficSystem.ts:133
↓ 2 callersFunctionangleToDirection
* Convert an angle (radians) to one of 8 compass directions * Uses hysteresis to prevent rapid direction flips
src/components/game/drawAircraft.ts:40
↓ 2 callersFunctionareCoasterTypesCompatible
(type1: CoasterType, type2: CoasterType)
src/games/coaster/types/tracks.ts:190
↓ 2 callersFunctioncalculateCorrectDirection
* Calculate the correct direction for a straight track piece based on the actual tile flow. * This fixes pieces that have incorrect stored directions
src/context/CoasterContext.tsx:758
↓ 2 callersFunctioncalculateSpriteCoords
( buildingType: BuildingType, source: SpriteSourceResult, sheetWidth: number, sheetHeight: number, a
src/components/game/buildingSprite.ts:280
↓ 2 callersFunctioncalculateSpriteOffsets
( buildingType: BuildingType, source: SpriteSourceResult, building: Building, activePack: SpritePack =
src/components/game/buildingSprite.ts:631
↓ 2 callersFunctioncalculateSpriteScale
( buildingType: BuildingType, source: SpriteSourceResult, building: Building, activePack: SpritePack =
src/components/game/buildingSprite.ts:514
↓ 2 callersFunctioncanPedestrianEnterBuilding
(buildingType: BuildingType)
src/components/game/pedestrianSystem.ts:151
↓ 2 callersFunctioncanSpawnMultiTileBuilding
( grid: Tile[][], x: number, y: number, width: number, height: number, zone: ZoneType, gridSize:
src/lib/simulation.ts:1406
↓ 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:110
↓ 2 callersFunctionclearAirCanvas
()
src/components/game/CanvasIsometricGrid.tsx:2392
↓ 2 callersFunctionclearGameState
()
src/context/GameContext.tsx:400
↓ 2 callersFunctionclearSavedCityStorage
()
src/context/GameContext.tsx:527
↓ 2 callersFunctioncoastNoise
(x: number, y: number)
src/lib/simulation.ts:319
↓ 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:833
↓ 2 callersFunctioncountRailTiles
( grid: Tile[][], gridSize: number )
src/components/game/railSystem.ts:1762
↓ 2 callersFunctioncreateBoolGrid
()
src/lib/simulation.ts:1136
↓ 2 callersFunctioncreateBoolGrid
()
src/context/GameContext.tsx:1246
↓ 2 callersFunctioncreateDefaultTrain
(config: TrainConfig = {})
src/context/CoasterContext.tsx:1267
↓ 2 callersFunctioncreateInitialWeather
(month: number)
src/context/CoasterContext.tsx:47
↓ 2 callersFunctioncreateMultiplayerProvider
( options: MultiplayerProviderOptions )
src/lib/multiplayer/supabaseProvider.ts:324
↓ 2 callersFunctioncreateServiceCoverage
(size: number)
src/lib/simulation.ts:1126
↓ 2 callersFunctioncreateServiceGrid
()
src/context/GameContext.tsx:1237
↓ 2 callersFunctiondecompressSavedCity
(saved: string)
src/context/GameContext.tsx:478
↓ 2 callersFunctiondeleteCoasterStateFromStorage
(key: string)
src/games/coaster/saveUtils.ts:141
↓ 2 callersMethoddestroy
()
src/lib/multiplayer/supabaseProvider.ts:302
↓ 2 callersFunctiondirectionFromLineDelta
(dx: number, dy: number)
src/context/CoasterContext.tsx:3155
↓ 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:631
↓ 2 callersFunctiondrawGreyBaseTiles
( ctx: CanvasRenderingContext2D, gridX: number, gridY: number, width: number, height: number, zoom
src/components/coaster/CoasterGrid.tsx:730
↓ 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:1396
↓ 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:1263
↓ 2 callersFunctionexpandBoolGrid
(oldGrid: boolean[][])
src/context/GameContext.tsx:1276
↓ 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:2979
↓ 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:1156
↓ 2 callersFunctiongetBridgeDeckColor
(isRailBridge: boolean, style: BridgeStyle)
src/components/game/bridgeDrawing.ts:84
↓ 2 callersFunctiongetConstructionSpeed
(buildingType: BuildingType)
src/lib/simulation.ts:2558
↓ 2 callersFunctiongetModifiableTile
(x: number, y: number)
src/lib/simulation.ts:2169
↓ 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:87
↓ 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:612
↓ 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:1444
↓ 2 callersFunctionhasRoadAtEdge
(grid: Tile[][], gridSize: number, direction: 'north' | 'south' | 'east' | 'west')
src/lib/simulation.ts:466
↓ 2 callersFunctionhasSavedGame
()
src/app/page.tsx:69
↓ 2 callersFunctionheightSorted
(list: AdjacentCandidate[])
src/context/CoasterContext.tsx:2269
↓ 2 callersMethodinsert
(entity: T)
src/lib/performanceUtils.ts:34
↓ 2 callersFunctionisCoasterState
(state: MultiplayerGameState)
src/hooks/useCoasterMultiplayerSync.ts:14
↓ 2 callersFunctionisPositionAtStation
(progress: number)
src/context/CoasterContext.tsx:1772
↓ 2 callersFunctionisShopBuilding
(buildingType: BuildingType)
src/components/game/pedestrianSystem.ts:158
↓ 2 callersFunctionisTypingTarget
(target: EventTarget | null)
src/components/game/CanvasIsometricGrid.tsx:607
↓ 2 callersFunctionloadCityState
(cityId: string)
src/context/GameContext.tsx:606
↓ 2 callersFunctionloadExampleState
( filename: string, loadState: (stateString: string) => boolean, setActivePanel: (panel: 'none' | 'finan
src/components/coaster/panels/Panels.tsx:102
↓ 2 callersFunctionloadImage
(src: string)
src/components/game/imageLoader.ts:95
↓ 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:77
↓ 2 callersFunctionneedsGreyBase
(type: string | undefined)
src/components/coaster/CoasterGrid.tsx:701
↓ 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:1230
↓ 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:2771
↓ 2 callersFunctionsaveCityState
(cityId: string, state: GameState)
src/context/GameContext.tsx:601
↓ 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 callersFunctionsaveCoasterStateToStorageAsync
(key: string, state: GameState)
src/games/coaster/saveUtils.ts:130
↓ 2 callersFunctionsaveGameState
(state: GameState, callback?: () => void)
src/context/GameContext.tsx:393
↓ 2 callersFunctionseededRandom
(seed: number)
src/components/coaster/CoasterGrid.tsx:1388
← previousnext →201–300 of 927, ranked by callers