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
tryAcceptChainedItem
* * @param {BaseItem} item
src/js/game/components/miner.js:55
↓ 1 callers
Method
tryAcceptTunneledItem
* Tries to accept a tunneled item * @param {BaseItem} item * @param {number} travelDistance How many tiles this item has to travel * @p
src/js/game/components/underground_belt.js:94
↓ 1 callers
Method
tryDeletePuzzle
* @param {import("../savegame/savegame_typedefs").PuzzleMetadata} puzzle
src/js/states/puzzle_menu.js:440
↓ 1 callers
Method
tryLogin
()
src/js/states/login.js:52
↓ 1 callers
Method
tryPassOverItem
* * @param {BaseItem} item * @param {Entity} receiver * @param {number} slotIndex
src/js/game/systems/item_ejector.js:222
↓ 1 callers
Method
tryPlace
* Attempts to place the blueprint at the given tile * @param {GameRoot} root * @param {Vector} tile
src/js/game/blueprint.js:157
↓ 1 callers
Method
tryUnlockNextTier
(upgradeId)
src/js/game/hud/parts/shop.js:245
↓ 1 callers
Method
tryUnlockUpgrade
* Tries to unlock the given upgrade * @param {string} upgradeId * @returns {boolean}
src/js/game/hub_goals.js:325
↓ 1 callers
Function
twoExports
(exp1, exp2)
gulp/mod.js:5
↓ 1 callers
Method
unapplyRotationToVector
* Transforms the given vector/rotation from world space to local space * @param {Vector} vector * @returns {Vector}
src/js/game/components/static_map_entity.js:157
↓ 1 callers
Method
unlock
()
src/js/platform/achievement_provider.js:157
↓ 1 callers
Method
unpinShape
* Unpins a shape * @param {string} key
src/js/game/hud/parts/pinned_shapes.js:304
↓ 1 callers
Method
unregisterEntityComponents
* Unregisters all components of an entity from the component to entity mapping * @param {Entity} entity
src/js/game/entity_manager.js:189
↓ 1 callers
Method
update
()
src/js/game/hud/parts/settings_menu.js:126
↓ 1 callers
Method
update
()
src/js/game/hud/parts/shape_viewer.js:125
↓ 1 callers
Method
update
()
src/js/game/hud/parts/modal_dialogs.js:175
↓ 1 callers
Method
update
()
src/js/game/hud/parts/standalone_advantages.js:78
↓ 1 callers
Method
update
()
src/js/core/buffer_maintainer.js:116
↓ 1 callers
Function
updateApplicationLanguage
(id)
src/js/translations.js:123
↓ 1 callers
Method
updateData
* * @param {GameRoot} root
src/js/savegame/savegame.js:266
↓ 1 callers
Method
updateDetailedInformation
* Updates the detailed information
src/js/game/hud/parts/debug_info.js:86
↓ 1 callers
Method
updateKeybindingOverride
* Sets a new keybinding override * @param {string} keybindingId * @param {number} keyCode
src/js/profile/application_settings.js:483
↓ 1 callers
Method
updateLabels
* Updates the labels
src/js/game/hud/parts/debug_info.js:69
↓ 1 callers
Method
updateLabels
()
src/js/profile/setting_types.js:342
↓ 1 callers
Method
updateLogic
()
src/js/game/core.js:319
↓ 1 callers
Method
updateShapesAfterUpgrade
* Updates all shapes after an upgrade has been purchased and removes the unused ones
src/js/game/hud/parts/pinned_shapes.js:81
↓ 1 callers
Method
updateState
()
src/js/game/hud/parts/puzzle_complete_notification.js:83
↓ 1 callers
Method
updateVariants
* Should update the entity to match the given variants * @param {Entity} entity * @param {number} rotationVariant * @param {string}
src/js/game/meta_building.js:276
↓ 1 callers
Method
verify
* Verifies the savegames data * @param {SavegameData} data
src/js/savegame/savegame.js:178
↓ 1 callers
Method
verify
(data)
src/js/savegame/savegame_manager.js:43
↓ 1 callers
Function
verifySchema
(schema, data)
src/js/savegame/serialization.js:317
↓ 1 callers
Method
verifySerializedValue
* Verifies a given serialized value * @param {any} value * @returns {string|void} String error code or null on success
src/js/savegame/serialization_data_types.js:63
↓ 1 callers
Method
writeFileAsync
(filename, contents)
src/js/platform/browser/storage.js:46
↓ 1 callers
Function
writeFileSafe
(filename, contents)
electron/index.js:254
↓ 1 callers
Function
writeFileSafe
(filename, contents)
electron_wegame/index.js:162
Function
BeltExtension
({ $super, $old })
mod_examples/class_extensions.js:12
Function
StripBlockLoader
(content)
gulp/loader.strip_block.js:11
Method
activate
()
src/js/platform/browser/no_achievement_provider.js:20
Method
activate
* @param {string} key * @returns {Promise<void>}
src/js/platform/electron/steam_achievement_provider.js:126
Function
activateAchievement
(event, id)
electron/steam.js:96
Method
activateDlc
* Activates a DLC * @param {string} dlc * @abstract
src/js/platform/game_analytics.js:49
Method
add
(receiver: () => string | void, scope: null | any)
src/js/globals.d.ts:176
Method
add
* Adds an event listener * @param {function() : void} receiver * @param {object=} scope
src/js/game/key_action_mapper.js:368
Method
add
(id, systemClass)
src/js/game/game_system_manager.js:139
Method
add
* Adds a new signal listener * @param {function} receiver * @param {object} scope
src/js/core/signal.js:14
Method
add
* Adds a vector and return a new vector * @param {Vector} other * @returns {Vector}
src/js/core/vector.js:79
Method
addBefore
src/js/game/game_system_manager.js:132
Method
addScreenShake
(amount)
src/js/game/camera.js:128
Method
addToTop
* Adds an event listener * @param {function() : void} receiver * @param {object=} scope
src/js/game/key_action_mapper.js:377
Method
addToTop
* Adds a new signal listener * @param {function} receiver * @param {object} scope
src/js/core/signal.js:25
Method
adjustZone
* @param {number} w * @param {number} h * @abstract
src/js/game/game_mode.js:149
Method
allBuildings
* Returns all buildings * @returns {Array<typeof MetaBuilding>}
src/js/game/hud/parts/base_toolbar.js:78
Method
allowNull
()
src/js/savegame/serialization_data_types.js:630
Method
allowNull
()
src/js/savegame/serialization_data_types.js:1260
Method
anyPlacementActive
* HELPER / Returns if there is a building or blueprint selected for placement * @returns {boolean}
src/js/game/hud/parts/keybinding_overlay.js:111
Method
anythingSelectedOnMap
* HELPER / Returns if there is anything selected on the map * @returns {boolean}
src/js/game/hud/parts/keybinding_overlay.js:102
Method
appendLabelToElement
* @param {Element} elem * @returns {HTMLElement} the created element, or null if the keybindings are not shown *
src/js/game/key_action_mapper.js:385
Method
applyRotationToVector
* Transforms the given vector/rotation from local space to world space * @param {Vector} vector * @returns {Vector}
src/js/game/components/static_map_entity.js:148
Method
applyStyles
src/js/game/hud/parts/building_placer.js:450
Function
array
* @param {BaseDataType} innerType
src/js/savegame/serialization.js:97
Method
assert
(condition: boolean, failureMessage: string)
src/js/globals.d.ts:106
Method
back
()
src/js/game/hud/parts/puzzle_back_to_menu.js:18
Method
beltPlannerActive
* HELPER / Returns if the belt planner is currently active * @returns {boolean}
src/js/game/hud/parts/keybinding_overlay.js:84
Method
bind
(selector, handler)
src/js/game/hud/parts/puzzle_editor_settings.js:21
Method
bind
(selector, handler)
src/js/game/hud/parts/puzzle_play_settings.js:14
Method
bind
(app, element, dialogs)
src/js/profile/setting_types.js:309
Method
bindEvents
(parent, clickTrackers)
src/js/core/modal_dialog_forms.js:102
Method
bindEvents
(parent, clickTrackers)
src/js/core/modal_dialog_forms.js:162
Method
bindEvents
* @param {HTMLElement} parent * @param {Array<ClickDetector>} clickTrackers
src/js/core/modal_dialog_forms.js:218
Method
blueprintPlacementActive
* HELPER / Returns if there is a blueprint selected for placement * @returns {boolean}
src/js/game/hud/parts/keybinding_overlay.js:75
Function
bootApp
()
src/js/main.js:61
Method
bottomRight
* Returns the bottom left point * @returns {Vector}
src/js/core/rectangle.js:187
Method
buildingPlacementActive
* HELPER / Returns if there is a building selected for placement * @returns {boolean}
src/js/game/hud/parts/keybinding_overlay.js:36
Method
buildingPlacementStaysInPlacement
* HELPER / Returns if there is a building selected for placement and * it has multiplace enabled by default * @returns {boolean}
src/js/game/hud/parts/keybinding_overlay.js:61
Method
buildingPlacementSupportsBeltPlanner
* HELPER / Returns if there is a building selected for placement and * it supports the belt planner * @returns {boolean}
src/js/game/hud/parts/keybinding_overlay.js:46
Method
bulkUnlock
()
src/js/platform/achievement_provider.js:321
Function
cachebust
* @param {string} url * @param {string} commitHash
gulp/buildutils.js:44
Method
canAcceptItem
* Returns if this acceptor can accept a new item at slot N * * NOTICE: The belt path ignores this for performance reasons and does his own
src/js/game/components/item_acceptor.js:83
Method
canPlace
* Checks if the blueprint can be placed at the given tile * @param {GameRoot} root * @param {Vector} tile
src/js/game/blueprint.js:129
Method
canZoomIn
* Returns if we can further zoom in * @returns {boolean}
src/js/game/camera.js:407
Method
canZoomOut
* Returns if we can further zoom out * @returns {boolean}
src/js/game/camera.js:415
Method
cancelAllInteractions
* Cancels all interactions, that is user interaction and non user interaction
src/js/game/camera.js:230
Function
catchErrors
* * @param {Event|string} message * @param {string} source * @param {number} lineno * @param {number} colno * @param {Error} source
src/js/core/error_handler.js:15
Method
checkForDirectionLockSwitch
* Checks if the direction lock key got released and if such, resets the placement * @param {any} args
src/js/game/hud/parts/building_placer_logic.js:425
Method
checker
src/js/core/stale_area_detector.js:52
Function
classId
* @param {FactoryTemplate<*>|SingletonFactoryTemplate<*>} registry
src/js/savegame/serialization.js:54
Function
classRef
* @param {SingletonFactoryTemplate<*>} innerType
src/js/savegame/serialization.js:111
Function
classWithMetaclass
* @param {typeof BasicSerializableObject} classHandle * @param {SingletonFactoryTemplate<*>} registry
src/js/savegame/serialization.js:134
Method
cleanup
()
src/js/game/map_view.js:38
Method
cleanup
()
src/js/game/key_action_mapper.js:477
Method
cleanup
* Cleans up everything
src/js/game/hud/hud.js:227
Method
cleanup
()
src/js/game/hud/parts/modal_dialogs.js:210
Method
cleanup
()
src/js/game/hud/parts/unlock_notification.js:116
Method
cleanup
()
src/js/core/input_receiver.js:19
Method
clear
()
src/js/game/components/item_ejector.js:52
Method
clearAnimations
* Clears all animations
src/js/game/camera.js:186
Method
clearBelts
()
src/js/game/hud/parts/mass_selector.js:148
Method
clearClickDetectorsExceptHeader
* Removes all click detectors, except the one on the back button. Useful when regenerating * content.
src/js/core/textual_game_state.js:80
Method
clearDrawnUids
()
src/js/game/systems/storage.js:24
Method
clearDrawnUids
()
src/js/game/systems/item_processor_overlays.js:23
← previous
next →
1,201–1,300 of 2,842, ranked by callers