Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tobspr-games/shapez.io
/ functions
Functions
2,842 in github.com/tobspr-games/shapez.io
⨍
Functions
2,842
◇
Types & classes
696
↓ 1 callers
Method
refreshCaches
()
src/js/game/game_system_with_filter.js:90
↓ 1 callers
Method
registerBuildingTranslation
* * @param {string | (new () => MetaBuilding)} buildingIdOrClass * @param {string} variant * @param {object} param0 * @param {stri
src/js/mods/mod_interface.js:545
↓ 1 callers
Method
registerEventListeners
* Registers all event listeners
src/js/application.js:223
↓ 1 callers
Method
registerGameSystemDrawHook
* * @param {string} hookId * @param {string} systemId
src/js/mods/mod_interface.js:239
↓ 1 callers
Method
registerGameTheme
* @param {Object} param0 * @param {string} param0.id * @param {string} param0.name * @param {Object} param0.theme
src/js/mods/mod_interface.js:400
↓ 1 callers
Method
registerHudElement
* * @param {string} id * @param {new (...args) => BaseHUDPart} element
src/js/mods/mod_interface.js:530
↓ 1 callers
Method
registerIngameKeybinding
* * @param {Object} param0 * @param {string} param0.id * @param {number} param0.keyCode * @param {string} param0.translation
src/js/mods/mod_interface.js:317
↓ 1 callers
Method
registerItem
* @param {typeof BaseItem} item * @param {(itemData: any) => BaseItem} resolver
src/js/mods/mod_interface.js:199
↓ 1 callers
Method
registerStates
* Registers all game states
src/js/application.js:198
↓ 1 callers
Method
registerSubShapeType
* * @param {object} param0 * @param {string} param0.id * @param {string} param0.shortCode * @param {(distanceToOriginInChunks: num
src/js/mods/mod_interface.js:171
↓ 1 callers
Method
remove
@param {string} key - Maps to an Achievement
src/js/platform/achievement_provider.js:367
↓ 1 callers
Method
removeDynamicComponent
* Call to remove a component after the creation of the entity * @param {Entity} entity * @param {typeof Component} component
src/js/game/entity_manager.js:124
↓ 1 callers
Method
removeIfAttached
* Removes the overlay if its currently visible
src/js/game/game_loading_overlay.js:25
↓ 1 callers
Method
renameWaypoint
* Renames a waypoint with the given label * @param {Waypoint} waypoint * @param {string} label
src/js/game/hud/parts/waypoints.js:367
↓ 1 callers
Method
renderBuildText
()
src/js/states/settings.js:106
↓ 1 callers
Method
renderChange
* Renders a new change * @param {string} label Text to display * @param {Rectangle} area Affected area world space * @param {string} fi
src/js/game/hud/parts/debug_changes.js:30
↓ 1 callers
Method
renderCountsAndStatus
()
src/js/game/hud/parts/shop.js:174
↓ 1 callers
Method
renderPreview
* Renders the preview at the given position * @param {import("../../../core/draw_utils").DrawParameters} parameters * @param {Vector} worldP
src/js/game/hud/parts/layer_preview.js:105
↓ 1 callers
Method
renderSearchForm
(parent)
src/js/states/puzzle_menu.js:204
↓ 1 callers
Method
reportPuzzle
()
src/js/game/modes/puzzle_play.js:168
↓ 1 callers
Method
requestRenameSavegame
* @param {SavegameMetadata} game
src/js/states/main_menu.js:581
↓ 1 callers
Method
rerenderFull
* Rerenders the whole container * @param {Entity} entity
src/js/game/hud/parts/entity_debugger.js:131
↓ 1 callers
Method
rerenderInfoDialog
* Rerenders the building info dialog
src/js/game/hud/parts/building_placer.js:110
↓ 1 callers
Method
rerenderWaypointsCompass
* Rerenders the compass
src/js/game/hud/parts/waypoints.js:528
↓ 1 callers
Method
reset
* Resets the whole root and removes all properties
src/js/game/root.js:220
↓ 1 callers
Method
resetApp
()
src/js/states/preload.js:322
↓ 1 callers
Method
resetKeybinding
(id)
src/js/states/keybindings.js:166
↓ 1 callers
Method
resetKeybindingOverride
* Resets a given keybinding override * @param {string} id
src/js/profile/application_settings.js:493
↓ 1 callers
Method
resetKeybindingOverrides
* Resets all keybinding overrides
src/js/profile/application_settings.js:500
↓ 1 callers
Function
resizeHighDPICanvas
(canvas, w, h, smooth = true)
src/js/core/dpi_manager.js:60
↓ 1 callers
Method
returnToMenu
()
src/js/game/hud/parts/settings_menu.js:63
↓ 1 callers
Function
rgb2gray
(rgb)
res_raw/sprites/create_blueprint_previews.py:20
↓ 1 callers
Method
rotateCcw
* Rotates the blueprint counter clock wise
src/js/game/blueprint.js:117
↓ 1 callers
Function
round1DigitLocalized
(speed, separator = T.global.decimalSeparator)
src/js/core/utils.js:550
↓ 1 callers
Function
run
()
res_raw/sprites/belt/generate_wire_sprites.js:128
↓ 1 callers
Function
run
()
res_raw/sprites/belt/generate_belt_sprites.js:11
↓ 1 callers
Method
saveMetadata
* Updates the savegames metadata
src/js/savegame/savegame.js:306
↓ 1 callers
Method
serialize
()
mod_examples/new_item_type.js:34
↓ 1 callers
Method
serialize
@returns {object}
src/js/game/game_mode.js:63
↓ 1 callers
Method
serialize
()
src/js/game/items/color_item.js:18
↓ 1 callers
Method
serializeEntityArray
* Serializes an array of entities * @param {Array<Entity>} array
src/js/savegame/serializer_internal.js:16
↓ 1 callers
Function
serializeError
(err)
src/js/core/logging.js:68
↓ 1 callers
Function
serializeEvent
* Serializes an event * @param {Event} event
src/js/core/logging.js:104
↓ 1 callers
Method
serializeObject
* * @param {object} obj
src/js/core/read_write_proxy.js:88
↓ 1 callers
Method
serializePaths
* Serializes all belt paths * @returns {Array<object>}
src/js/game/systems/belt.js:74
↓ 1 callers
Function
serializeSchema
(obj, schema, mergeWith = {})
src/js/savegame/serialization.js:231
↓ 1 callers
Method
setActiveCategory
(category)
src/js/states/settings.js:155
↓ 1 callers
Method
setBottom
* Sets the bottom side of the rect without moving it * @param {number} bottom
src/js/core/rectangle.js:151
↓ 1 callers
Method
setBuildingToolbarIcon
(buildingId, iconBase64)
src/js/mods/mod_interface.js:366
↓ 1 callers
Method
setDesiredCenter
* Sets a point in world space to focus on * @param {Vector} center
src/js/game/camera.js:139
↓ 1 callers
Method
setDesiredZoom
* Sets a desired zoom level * @param {number} zoom
src/js/game/camera.js:148
↓ 1 callers
Function
setGlobalApp
(app)
src/js/core/globals.js:14
↓ 1 callers
Method
setIndex
(index)
src/js/core/modal_dialog_elements.js:216
↓ 1 callers
Method
setRight
* Sets the right side of the rect without moving it * @param {number} right
src/js/core/rectangle.js:143
↓ 1 callers
Method
setSlots
* * @param {Array<ItemAcceptorSlotConfig>} slots
src/js/game/components/item_acceptor.js:61
↓ 1 callers
Method
setSlots
* @param {Array<{pos: Vector, direction: enumDirection }>} slots The slots to eject on
src/js/game/components/item_ejector.js:63
↓ 1 callers
Method
setValue
(value)
src/js/core/modal_dialog_forms.js:131
↓ 1 callers
Method
setVisible
* Sets whether the shape handle is visible currently * @param {boolean} visibility
src/js/game/hud/parts/statistics_handle.js:55
↓ 1 callers
Method
setVolume
(volume)
src/js/platform/sound.js:75
↓ 1 callers
Method
setupEntityComponents
* Should setup the entity components * @param {Entity} entity * @param {GameRoot} root * @abstract
src/js/game/meta_building.js:286
↓ 1 callers
Method
setupEntityComponents
* Creates the entity at the given location * @param {Entity} entity
src/js/game/buildings/hub.js:52
↓ 1 callers
Method
shapeActionCutQuad
* Generates a definition for splitting a shape definition in four quads * @param {ShapeDefinition} definition * @returns {[ShapeDefinition
src/js/game/shape_definition_manager.js:113
↓ 1 callers
Method
shapeActionPaintWith4Colors
* Generates a definition for painting it with the 4 colors * @param {ShapeDefinition} definition * @param {[enumColors, enumColors, enumCo
src/js/game/shape_definition_manager.js:232
↓ 1 callers
Method
shapeActionRotate180
* Generates a definition for rotating a shape FL * @param {ShapeDefinition} definition * @returns {ShapeDefinition}
src/js/game/shape_definition_manager.js:173
↓ 1 callers
Method
shapeActionRotateCCW
* Generates a definition for rotating a shape counter clockwise * @param {ShapeDefinition} definition * @returns {ShapeDefinition}
src/js/game/shape_definition_manager.js:155
↓ 1 callers
Method
sharePuzzle
()
src/js/game/modes/puzzle_play.js:159
↓ 1 callers
Method
shouldPauseRendering
* Returns true if the rendering can be paused
src/js/game/hud/hud.js:141
↓ 1 callers
Method
shouldRender
()
src/js/game/core.js:303
↓ 1 callers
Method
show
()
src/js/game/hud/parts/standalone_advantages.js:66
↓ 1 callers
Method
show
()
src/js/game/hud/parts/tutorial_hints.js:78
↓ 1 callers
Method
showFailMessage
(text)
src/js/states/preload.js:274
↓ 1 callers
Method
showRestartRequiredDialog
* Shows the dialog that a restart is required
src/js/profile/setting_types.js:97
↓ 1 callers
Function
smoothPulse
(time)
src/js/core/utils.js:666
↓ 1 callers
Method
sortSavegames
* Sorts all savegames by their creation time descending * @returns {Promise<any>}
src/js/savegame/savegame_manager.js:203
↓ 1 callers
Method
stage10GameRunning
* The final stage where this game is running and updating regulary.
src/js/states/ingame.js:319
↓ 1 callers
Method
stage3CreateCore
* Creates the game core instance, and thus the root
src/js/states/ingame.js:238
↓ 1 callers
Method
stage4aInitEmptyGame
* Initializes a new empty game
src/js/states/ingame.js:257
↓ 1 callers
Method
stage4bResumeGame
* Resumes an existing game
src/js/states/ingame.js:267
↓ 1 callers
Method
stage6PostLoadHook
* Call the post load hook, this means that we have loaded the game, and all systems * can operate and start to work now.
src/js/states/ingame.js:293
↓ 1 callers
Method
stage7Warmup
* This makes the game idle and draw for a while, because we run most code this way * the V8 engine can already start to optimize it. Also this m
src/js/states/ingame.js:306
↓ 1 callers
Method
stageLeavingGame
* When leaving the game
src/js/states/ingame.js:356
↓ 1 callers
Method
start
()
src/js/core/animation_frame.js:42
↓ 1 callers
Function
startFileChoose
(acceptedType = ".bin")
src/js/core/utils.js:702
↓ 1 callers
Method
startLoading
()
src/js/states/preload.js:68
↓ 1 callers
Method
startNewCharge
* Starts a new charge for the entity * @param {Entity} entity
src/js/game/systems/item_processor.js:294
↓ 1 callers
Function
stringPolyfills
()
src/js/core/polyfills.js:13
↓ 1 callers
Function
stringifyObjectContainingErrors
(payload)
src/js/core/logging.js:134
↓ 1 callers
Method
subInplace
* Subs a vector * @param {Vector} other * @returns {Vector}
src/js/core/vector.js:108
↓ 1 callers
Method
syncValueToElement
()
src/js/profile/setting_types.js:82
↓ 1 callers
Method
syncValueToElement
()
src/js/profile/setting_types.js:183
↓ 1 callers
Method
syncValueToElement
()
src/js/profile/setting_types.js:246
↓ 1 callers
Method
syncValueToElement
()
src/js/profile/setting_types.js:323
↓ 1 callers
Method
systemNow
* Returns "real" time in seconds * @returns {number} seconds
src/js/game/time/game_time.js:168
↓ 1 callers
Method
takeShapeByKey
* @param {string} key * @param {number} amount
src/js/game/hub_goals.js:151
↓ 1 callers
Method
tick
(deltaMs)
src/js/game/core.js:277
↓ 1 callers
Method
toTileCullRectangle
* Returns a new rectangle in tile space which includes all tiles which are visible in this rect * @returns {Rectangle}
src/js/core/rectangle.js:367
↓ 1 callers
Method
toggleBuildingLock
* @param {MetaBuilding} metaBuilding
src/js/game/hud/parts/base_toolbar.js:284
↓ 1 callers
Method
toggleSorted
()
src/js/game/hud/parts/statistics.js:98
↓ 1 callers
Method
trackStateEnter
* Tracks when a new state is entered * @param {string} stateId
src/js/platform/analytics.js:37
↓ 1 callers
Method
transform
* Prepares a context to transform it * @param {CanvasRenderingContext2D} context
src/js/game/camera.js:808
← previous
next →
1,101–1,200 of 2,842, ranked by callers