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
↓ 2 callers
Method
getAsCopyableKey
* Returns a string id of the item * @returns {string} * @abstract
src/js/game/base_item.js:34
↓ 2 callers
Method
getAsCopyableKey
* @returns {string}
src/js/game/items/color_item.js:34
↓ 2 callers
Method
getAsHTML
* Returns the html to render as icon * @param {number} w * @param {number} h
src/js/core/sprites.js:298
↓ 2 callers
Method
getBackgroundColorAsResource
()
src/js/game/base_item.js:97
↓ 2 callers
Method
getBackgroundColorAsResource
()
src/js/game/items/color_item.js:53
↓ 2 callers
Method
getBlueprintSprite
* Returns a sprite for blueprints * @returns {AtlasSprite}
src/js/game/meta_building.js:163
↓ 2 callers
Method
getCameraBounds
@returns {Rectangle|undefined}
src/js/game/game_mode.js:101
↓ 2 callers
Method
getCurrentDump
* Returns the current game dump * @returns {SerializedGame}
src/js/savegame/savegame.js:226
↓ 2 callers
Method
getCurrentVersion
()
src/js/savegame/savegame_manager.js:39
↓ 2 callers
Method
getDimensions
* Should return the dimensions of the building
src/js/game/meta_building.js:49
↓ 2 callers
Method
getDimensions
()
src/js/game/buildings/hub.js:23
↓ 2 callers
Method
getDumpReaderForExternalData
* Returns a reader to access external data * @returns {BaseSavegameInterface}
src/js/savegame/savegame.js:247
↓ 2 callers
Method
getEntries
()
src/js/globals.d.ts:157
↓ 2 callers
Method
getFakeAcceptorSlot
* Returns fake acceptor slot used for matching * @returns {import("./item_acceptor").ItemAcceptorSlot}
src/js/game/components/belt.js:78
↓ 2 callers
Method
getFakeEjectorSlot
* Returns fake acceptor slot used for matching * @returns {import("./item_ejector").ItemEjectorSlot}
src/js/game/components/belt.js:86
↓ 2 callers
Method
getHasDirectionLockAvailable
()
src/js/game/buildings/wire.js:85
↓ 2 callers
Method
getHasExtendedLevelsAndFreeplay
* Returns if all levels & freeplay is available * @returns {boolean}
src/js/core/restriction_manager.js:151
↓ 2 callers
Method
getHasUnlimitedSavegames
* Returns if the user has unlimited savegames * @returns {boolean}
src/js/core/restriction_manager.js:127
↓ 2 callers
Method
getInnerHTML
()
src/js/states/login.js:11
↓ 2 callers
Method
getIsFreeplayAvailable
@returns {boolean}
src/js/game/game_mode.js:160
↓ 2 callers
Method
getIsReplaceable
* Returns whether this building can get replaced * @param {string} variant * @param {number} rotationVariant
src/js/game/meta_building.js:95
↓ 2 callers
Method
getIsStandaloneMarketingActive
* Returns if the app markets the standalone version on steam * @returns {boolean}
src/js/core/restriction_manager.js:103
↓ 2 callers
Method
getItemType
@returns {"boolean"}
src/js/game/items/boolean_item.js:25
↓ 2 callers
Method
getKey
* Returns the states key * @returns {string}
src/js/core/game_state.js:54
↓ 2 callers
Method
getKeybindingOverrides
()
src/js/profile/application_settings.js:444
↓ 2 callers
Method
getLevelDefinitions
* Returns the goals for all levels including their reward * @returns {Array<LevelDefinition>}
src/js/game/modes/regular.js:618
↓ 2 callers
Method
getMovementSpeed
()
src/js/profile/application_settings.js:418
↓ 2 callers
Method
getPreviewSprite
* * @param {number} rotationVariant * @param {string} variant * @returns {import("../../core/draw_utils").AtlasSprite}
src/js/game/buildings/wire.js:169
↓ 2 callers
Function
getRandomHint
()
src/js/game/hints.js:9
↓ 2 callers
Method
getSchema
* Should return the serialization schema * @returns {Schema}
src/js/savegame/serialization.js:168
↓ 2 callers
Method
getScreenScale
()
src/js/platform/wrapper.js:69
↓ 2 callers
Method
getSettingHandleById
(id)
src/js/profile/application_settings.js:363
↓ 2 callers
Method
getShapesStored
* Returns how much of the current shape is stored * @param {ShapeDefinition} definition * @returns {number}
src/js/game/hub_goals.js:143
↓ 2 callers
Method
getSpeed
()
src/js/game/time/game_time.js:176
↓ 2 callers
Method
getSprite
* Returns an atlas sprite from the cache * @param {string} key * @returns {AtlasSprite}
src/js/core/loader.js:56
↓ 2 callers
Method
getSpriteInternal
* Fetches a given sprite from the cache * @param {string} key * @returns {BaseSprite}
src/js/core/loader.js:38
↓ 2 callers
Method
getStayInPlacementMode
()
src/js/game/buildings/wire.js:101
↓ 2 callers
Method
getSupportsFullscreen
* Returns whether this platform supports a toggleable fullscreen
src/js/platform/wrapper.js:101
↓ 2 callers
Method
getSupportsRestart
@returns {boolean}
src/js/platform/wrapper.js:27
↓ 2 callers
Method
getSupportsWires
()
src/js/game/modes/puzzle.js:92
↓ 2 callers
Method
getTextScale
* Returns how big the text should be rendered
src/js/game/hud/parts/waypoints.js:178
↓ 2 callers
Method
getTopReciever
()
src/js/core/input_distributor.js:134
↓ 2 callers
Method
getVersion
* Returns the interfaces version
src/js/savegame/savegame_interface.js:19
↓ 2 callers
Method
getVersion
()
src/js/savegame/schemas/1001.js:11
↓ 2 callers
Method
getViewportHeight
* Returns effective viewport height
src/js/game/camera.js:248
↓ 2 callers
Method
getViewportLeft
* Returns effective world space viewport left
src/js/game/camera.js:255
↓ 2 callers
Method
getViewportTop
* Returns effective world space viewport top
src/js/game/camera.js:269
↓ 2 callers
Method
getViewportWidth
* Returns effective viewport width
src/js/game/camera.js:241
↓ 2 callers
Method
getVisibleRect
* Returns the visible world space rect * @returns {Rectangle}
src/js/game/camera.js:284
↓ 2 callers
Method
getWaypointCanvas
* Gets the canvas for a given waypoint * @param {Waypoint} waypoint * @returns {HTMLCanvasElement}
src/js/game/hud/parts/waypoints.js:263
↓ 2 callers
Method
getWaypointScreenParams
* Returns the screen space bounds of the given waypoint or null * if it couldn't be determined. Also returns wheter its a shape or not * @
src/js/game/hud/parts/waypoints.js:436
↓ 2 callers
Function
globalWarn
(context, ...args)
src/js/core/logging.js:149
↓ 2 callers
Method
goBackToMenu
* Goes back to the menu state
src/js/states/ingame.js:165
↓ 2 callers
Method
hasAchievements
@returns {boolean}
src/js/game/game_mode.js:116
↓ 2 callers
Method
hasBlockingOverlayOpen
* Returns true if the rendering can be paused
src/js/game/hud/hud.js:153
↓ 2 callers
Method
hasDefaultReceivers
* Check if the collection-level achievementCheck receivers are still * necessary.
src/js/platform/achievement_provider.js:382
↓ 2 callers
Method
hasGameDump
* Returns if this game has a serialized game dump
src/js/savegame/savegame.js:218
↓ 2 callers
Function
hexToRGB
(h)
res_raw/sprites/belt/generate_wire_sprites.js:22
↓ 2 callers
Method
inRequiredBuildings
* @param {MetaBuilding} metaBuilding
src/js/game/hud/parts/base_toolbar.js:319
↓ 2 callers
Function
indexMapToArray
* @param {Map} hashMap * @returns {Array}
src/js/savegame/savegame_compressor.js:107
↓ 2 callers
Method
init
* Initializes the path by computing the properties which are not saved * @param {boolean} computeSpacing Whether to also compute the spacing
src/js/game/belt_path.js:92
↓ 2 callers
Method
initialize
* Initializes the hud parts
src/js/game/hud/hud.js:35
↓ 2 callers
Method
initializeAfterDeserialize
(root)
src/js/game/time/base_game_speed.js:32
↓ 2 callers
Function
inject
()
src/js/core/error_handler.js:104
↓ 2 callers
Method
internalCleanUpClickDetectors
* Cleans up all click detectors
src/js/core/game_state.js:314
↓ 2 callers
Method
internalDetach
* Internal method to detach the element
src/js/game/hud/dynamic_dom_attach.js:67
↓ 2 callers
Method
internalGenerateShapeBuffer
* * @param {HTMLCanvasElement} canvas * @param {CanvasRenderingContext2D} context * @param {number} w * @param {number} h * @
src/js/game/shape_definition.js:350
↓ 2 callers
Method
internalGetEventListenerOptions
* Internal method to get the options to pass to an event listener
src/js/core/click_detector.js:167
↓ 2 callers
Method
internalPreloadImage
* * @param {string} key * @returns {Promise<HTMLImageElement|null>}
src/js/core/loader.js:81
↓ 2 callers
Method
internalRegisterEntity
* * @param {Entity} entity
src/js/game/game_system_with_filter.js:114
↓ 2 callers
Method
internalUpdateOngoingSounds
* Updates the list of ongoing sounds
src/js/game/sound_proxy.js:78
↓ 2 callers
Method
internalVerifyBasicStructure
@returns {ExplainedResult}
src/js/core/read_write_proxy.js:316
↓ 2 callers
Method
internalVerifyEntry
@returns {ExplainedResult}
src/js/core/read_write_proxy.js:330
↓ 2 callers
Method
intersectsFully
* Returns whether the rectangle fully intersects the given rectangle * @param {Rectangle} rect
src/js/core/rectangle.js:303
↓ 2 callers
Method
invalidate
* Invalidates the given area * @param {Rectangle} area
src/js/core/stale_area_detector.js:30
↓ 2 callers
Method
isBuildingExcluded
* @param {typeof import("../meta_building").MetaBuilding} building
src/js/game/modes/puzzle.js:44
↓ 2 callers
Method
isEmpty
* Returns if this rectangle is empty * @returns {boolean}
src/js/core/rectangle.js:77
↓ 2 callers
Method
isEntityRelevantForWires
* Returns whether this entity is relevant for the wires network * @param {Entity} entity
src/js/game/systems/wire.js:680
↓ 2 callers
Method
isShape
* @param {ShapeItem} item * @param {string} shape * @returns {boolean}
src/js/platform/achievement_provider.js:418
↓ 2 callers
Method
isWaypointDeletable
* Returns if a waypoint is deletable * @param {Waypoint} waypoint * @returns {boolean}
src/js/game/hud/parts/waypoints.js:422
↓ 2 callers
Method
load
@returns {Promise<void>}
src/js/platform/sound.js:49
↓ 2 callers
Function
makeDivElement
(id = null, classes = [], innerHTML = "")
src/js/core/utils.js:383
↓ 2 callers
Function
makeJsTag
(src, integrity)
gulp/bundle-loader.js:63
↓ 2 callers
Method
markDirty
* Marks this chunk as dirty, rerendering all caches
src/js/game/map_chunk_view.js:43
↓ 2 callers
Function
minifyImagesOpts
()
gulp/image-resources.js:40
↓ 2 callers
Function
minifyImagesOptsLossless
()
gulp/image-resources.js:25
↓ 2 callers
Function
mixVector
(v1, v2, a)
src/js/core/vector.js:677
↓ 2 callers
Method
modifyLevel
(amount)
src/js/game/hud/parts/sandbox_controller.js:113
↓ 2 callers
Method
moveToWaypoint
* Moves the camera to a given waypoint * @param {Waypoint} waypoint
src/js/game/hud/parts/waypoints.js:243
↓ 2 callers
Method
next
()
src/js/game/hud/parts/puzzle_dlc_logo.js:13
↓ 2 callers
Method
nextRange
* @param {number} min * @param {number} max * @returns {number} Number in range [min, max[
src/js/core/rng.js:117
↓ 2 callers
Method
onActivate
* Cleans up after achievement activation attempt with the provider. Could * utilize err to retry some number of times if needed. * @param {?
src/js/platform/achievement_provider.js:358
↓ 2 callers
Method
onAppPause
* Callback when the app got paused (on android, this means in background)
src/js/core/game_state.js:140
↓ 2 callers
Method
onAppResume
* Callback when the app got resumed (on android, this means in foreground again)
src/js/core/game_state.js:145
↓ 2 callers
Method
onBeforeExit
* Callback before leaving the game state or when the page is unloaded
src/js/core/game_state.js:135
↓ 2 callers
Method
onEnter
* Callback when entering the state, to be overriddemn * @param {any} payload Arbitrary data passed from the state which we are transferring from
src/js/core/game_state.js:125
↓ 2 callers
Method
onGoalCompleted
* Called when the level was completed
src/js/game/hub_goals.js:260
↓ 2 callers
Method
onHasLegacySavegamesChanged
* Checks if there are any savegames from the 1.1.19 version
src/js/core/restriction_manager.js:63
↓ 2 callers
Method
onItemAccepted
* Called when an item has been accepted so that * @param {number} slotIndex * @param {enumDirection} direction * @param {BaseItem} i
src/js/game/components/item_acceptor.js:95
↓ 2 callers
Method
onResized
* Called when the screen resized * @param {number} w window/screen width * @param {number} h window/screen height
src/js/core/game_state.js:164
← previous
next →
501–600 of 2,842, ranked by callers