MCPcopy Index your code

hub / github.com/tobspr-games/shapez.io / functions

Functions2,842 in github.com/tobspr-games/shapez.io

↓ 401 callersMethodadd
(receiver: (...args: T) => /* STOP_PROPAGATION */ string | void, scope?: object)
src/js/globals.d.ts:194
↓ 276 callersMethodlog
(...args)
src/js/globals.d.ts:45
↓ 131 callersFunctionmakeDiv
(parent, id = null, classes = [], innerHTML = "")
src/js/core/utils.js:402
↓ 117 callersMethodwarn
(...args)
src/js/globals.d.ts:46
↓ 107 callersMethoderror
(...args)
src/js/globals.d.ts:48
↓ 103 callersMethoddispatch
(...args: T)
src/js/globals.d.ts:198
↓ 102 callersMethodcreateElement
()
src/js/core/modal_dialog_elements.js:116
↓ 101 callersMethodget
()
src/js/mods/modloader.js:124
↓ 82 callersMethodaddComponent
* Adds a new component, only possible until the entity is registered on the entity manager, * after that use @see EntityManager.addDynamicCompon
src/js/game/entity.js:114
↓ 81 callersFunctioncreateLogger
(context)
src/js/core/logging.js:34
↓ 71 callersMethodgetBinding
* Returns a given keybinding * @param {{ keyCode: number }} binding * @returns {Keybinding}
src/js/game/key_action_mapper.js:550
↓ 70 callersMethodnow
* Returns ingame time in seconds * @returns {number} seconds
src/js/game/time/game_time.js:152
↓ 69 callersMethodgetId
()
src/js/globals.d.ts:152
↓ 63 callersMethodfloor
* Computes componentwise floor and returns a new vector * @returns {Vector}
src/js/core/vector.js:315
↓ 54 callersMethodgetAllSettings
* @returns {SettingsStorage}
src/js/profile/application_settings.js:372
↓ 53 callersMethodmin
* Computes the component wise minimum and return a new vector * @param {Vector} v * @returns {Vector}
src/js/core/vector.js:242
↓ 48 callersMethodset
(v)
src/js/mods/modloader.js:127
↓ 46 callersMethodbind
* Binds all parameters * @param {Application} app * @param {HTMLElement} element * @param {any} dialogs
src/js/profile/setting_types.js:58
↓ 46 callersMethodmax
* Computes the component wise maximum and return a new vector * @param {Vector} v * @returns {Vector}
src/js/core/vector.js:251
↓ 45 callersMethodadd
* @param {string} key - Maps to an Achievement * @param {object} [options] * @param {function} [options.init] * @param {function} [opti
src/js/platform/achievement_provider.js:297
↓ 45 callersFunctionkeyToKeyCode
(str)
src/js/game/key_action_mapper.js:11
↓ 44 callersMethodround
* Computes componentwise round and return a new vector * @returns {Vector}
src/js/core/vector.js:331
↓ 43 callersMethodgetHash
* Returns a unique id for this shape * @returns {string}
src/js/game/shape_definition.js:266
↓ 43 callersMethodremove
(receiver: (...args: T) => /* STOP_PROPAGATION */ string | void)
src/js/globals.d.ts:196
↓ 37 callersMethodgetSprite
()
src/js/game/buildings/hub.js:39
↓ 37 callersMethodisRewardUnlocked
* Returns whether the given reward is already unlocked * @param {enumHubGoalRewards} reward
src/js/game/hub_goals.js:196
↓ 36 callersMethodbind
(selector, handler)
src/js/game/hud/parts/sandbox_controller.js:56
↓ 36 callersMethodtrackClicks
* Helper method to construct a new click detector * @param {Element} element The element to listen on * @param {function} handler The handle
src/js/game/hud/base_hud_part.js:108
↓ 33 callersMethodtoggle
()
src/js/game/hud/parts/sandbox_controller.js:154
↓ 33 callersMethodtrackClicks
* Tracks clicks on a given element and calls the given callback *on this state*. * If you want to call another function wrap it inside a lambda.
src/js/core/game_state.js:101
↓ 32 callersMethodscreenToWorld
* Converts from screen to world space * @param {Vector} screen * @returns {Vector} world space
src/js/game/camera.js:370
↓ 31 callersMethodshowWarning
* @param {string} title * @param {string} text * @param {Array<string>} buttons
src/js/game/hud/parts/modal_dialogs.js:85
↓ 30 callersMethodgetAllWithComponent
* Returns all entities having the given component * @param {typeof Component} componentHandle * @returns {Array<Entity>} entities
src/js/game/entity_manager.js:181
↓ 30 callersMethodtoString
* Returns a string representation of the vector * @returns {string}
src/js/core/vector.js:426
↓ 30 callersMethodtoTileSpace
* Converts this vector from world to tile space and return a new vector * @returns {Vector}
src/js/core/vector.js:339
↓ 29 callersFunctiongenerateMatrixRotations
(originalMatrix)
src/js/core/utils.js:605
↓ 29 callersMethodgetItemType
@returns {"color"}
src/js/game/items/color_item.js:27
↓ 29 callersMethodtrackUiClick
* Tracks a click no an ui element * @param {string} elementName
src/js/platform/analytics.js:31
↓ 28 callersFunctionfindCode
* * @param {typeof MetaBuilding} metaBuilding * @param {string=} variant * @param {number=} rotationVariant
src/js/savegame/schemas/1006.js:33
↓ 28 callersMethodgetTileSpaceBounds
* Returns the effective rectangle of this entity in tile space * @returns {Rectangle}
src/js/game/components/static_map_entity.js:127
↓ 28 callersMethodlocalDirectionToWorld
* Transforms the given direction from local space * @param {enumDirection} direction * @returns {enumDirection}
src/js/game/components/static_map_entity.js:166
↓ 28 callersMethodsetSlots
* Sets the slots of this building * @param {Array<WirePinSlotDefinition>} slots
src/js/game/components/wired_pins.js:56
↓ 27 callersMethodkeys
()
src/js/globals.d.ts:124
↓ 27 callersMethodlocalTileToWorld
* Transforms from local tile space to global tile space * @param {Vector} localTile * @returns {Vector}
src/js/game/components/static_map_entity.js:184
↓ 25 callersMethodmoveToState
* Transfers to a new state * @param {string} stateKey The id of the new state
src/js/core/game_state.js:70
↓ 24 callersMethodcopy
* return a copy of the vector * @returns {Vector}
src/js/core/vector.js:70
↓ 24 callersMethodgetLayerContentXY
* Returns the tile content of a given tile * @param {number} x * @param {number} y * @param {Layer} layer * @returns {Entity}
src/js/game/map.js:164
↓ 24 callersMethodhas
* @param {string} key * @returns {boolean}
src/js/game/achievement_proxy.js:111
↓ 22 callersFunctionclamp
(v, minimum = 0, maximum = 1)
src/js/core/utils.js:373
↓ 22 callersMethoddrawChunk
* Draws a given chunk * @param {import("../../core/draw_utils").DrawParameters} parameters * @param {MapChunkView} chunk
src/js/game/systems/wire.js:604
↓ 22 callersMethodfindByClass
(classHandle: Class<T>)
src/js/globals.d.ts:170
↓ 22 callersMethodgetShapeItemFromDefinition
* Returns a shape item for a given definition * @param {ShapeDefinition} definition * @returns {ShapeItem}
src/js/game/shape_definition_manager.js:72
↓ 22 callersFunctiontyped
src/js/game/tutorial_goals_mappings.js:24
↓ 20 callersFunctionround2Digits
(n)
src/js/core/utils.js:345
↓ 20 callersMethodshowInfo
* @param {string} title * @param {string} text * @param {Array<string>} buttons
src/js/game/hud/parts/modal_dialogs.js:63
↓ 19 callersMethodabs
* Computes the component wise absolute * @returns {Vector}
src/js/core/vector.js:258
↓ 19 callersMethodserialize
(value)
src/js/savegame/serialization_data_types.js:513
↓ 18 callersMethodbad
(reason, additionalProps)
src/js/core/explained_result.js:27
↓ 18 callersMethodgetIsMapOverlayActive
()
src/js/game/camera.js:293
↓ 18 callersMethodrealtimeNow
* Returns "real" time in seconds * @returns {number} seconds
src/js/game/time/game_time.js:160
↓ 17 callersMethodbottom
* @returns {number}
src/js/core/rectangle.js:119
↓ 17 callersMethodequals
* Returns if the item equals the other itme * @param {BaseItem} other * @returns {boolean}
src/js/game/base_item.js:44
↓ 17 callersMethodright
* @returns {number}
src/js/core/rectangle.js:105
↓ 17 callersMethodwatch
* * @param {Promise<any>} promise * @returns {Promise<any>}
src/js/core/request_channel.js:20
↓ 16 callersMethodceil
* Computes componentwise ceil and returns a new vector * @returns {Vector}
src/js/core/vector.js:323
↓ 16 callersFunctionformatItemsPerSecond
(speed, double = false, separator = T.global.decimalSeparator)
src/js/core/utils.js:560
↓ 16 callersMethodopenExternalLink
* Attempt to open an external url * @param {string} url * @param {boolean=} force Whether to always open the url even if not allowed
src/js/platform/wrapper.js:86
↓ 16 callersFunctionrequireUncached
(module)
gulp/js.js:3
↓ 16 callersMethodtoWorldSpaceCenterOfTile
* Converts this vector to world space and return a new vector * @returns {Vector}
src/js/core/vector.js:363
↓ 15 callersFunctionformatBigNumber
(num, separator = T.global.decimalSeparator)
src/js/core/utils.js:256
↓ 15 callersMethodgetMetaBuilding
* Returns the meta building * @returns {import("../meta_building").MetaBuilding}
src/js/game/components/static_map_entity.js:62
↓ 15 callersMethodgetTileContent
* Returns the tile content of a given tile * @param {Vector} tile * @param {Layer} layer * @returns {Entity} Entity or null
src/js/game/map.js:139
↓ 15 callersMethodsub
* Substracts a vector and return a new vector * @param {Vector} other * @returns {Vector}
src/js/core/vector.js:99
↓ 14 callersMethodfocus
()
src/js/core/modal_dialog_forms.js:37
↓ 14 callersFunctiongetBuildingDataFromCode
(code)
src/js/game/building_codes.js:76
↓ 14 callersMethodgood
()
src/js/core/explained_result.js:23
↓ 14 callersMethodmultiplyScalar
* Multiplies both components with a scalar and return a new vector * @param {number} f * @returns {Vector}
src/js/core/vector.js:203
↓ 14 callersMethodregister
(entry: Class<T>)
src/js/globals.d.ts:154
↓ 14 callersMethodregisterOrReturnHandle
* Checks if we already have cached this definition, and if so throws it away and returns the already * cached variant * @param {ShapeDefin
src/js/game/shape_definition_manager.js:248
↓ 14 callersMethodremoveAll
()
src/js/globals.d.ts:200
↓ 13 callersMethodgetProcessorBaseSpeed
* Processor speed * @param {enumItemProcessorTypes} processorType * @returns {number} items / sec
src/js/game/hub_goals.js:514
↓ 13 callersMethodsetStatus
* * @param {string} text
src/js/states/preload.js:264
↓ 13 callersMethodtryDeleteBuilding
* Tries to delete the given building * @param {Entity} building
src/js/game/logic.js:218
↓ 12 callersFunctioncachebust
(path)
src/js/core/cachebust.js:5
↓ 12 callersMethoddebug_checkIntegrity
* Checks if this path is valid
src/js/game/belt_path.js:381
↓ 12 callersMethoddrawItemCenteredClipped
* @param {number} x * @param {number} y * @param {number} diameter * @param {DrawParameters} parameters
src/js/game/items/color_item.js:75
↓ 12 callersMethodinternalShowDialog
(dialog)
src/js/game/hud/parts/modal_dialogs.js:151
↓ 12 callersFunctionisTruthyItem
(item)
src/js/game/items/boolean_item.js:100
↓ 12 callersFunctionmakeOffscreenBuffer
(w, h, { smooth = true, reusable = true, label = "buffer" })
src/js/core/buffer_utils.js:105
↓ 12 callersMethodmodifyUpgrade
(id, amount)
src/js/game/hud/parts/sandbox_controller.js:91
↓ 12 callersMethodplayUi
* Plays a new ui sound * @param {string} id Sound ID
src/js/game/sound_proxy.js:29
↓ 12 callersMethodwriteAsync
* @see ReadWriteProxy.writeAsync * @returns {Promise<any>}
src/js/savegame/savegame.js:322
↓ 11 callersMethodfindByUid
* Finds an entity buy its uid, kinda slow since it loops over all entities * @param {number} uid * @param {boolean=} errorWhenNotFound
src/js/game/entity_manager.js:138
↓ 11 callersMethodgetBlueprintShapeKey
@returns {string}
src/js/game/game_mode.js:195
↓ 11 callersMethodgetEffectiveLengthTiles
* Returns the effective length of this belt in tile space * @returns {number}
src/js/game/components/belt.js:70
↓ 11 callersMethodgetShapeItemFromShortKey
* Returns a item instance from a given short key * @param {string} hash * @returns {ShapeItem}
src/js/game/shape_definition_manager.js:58
↓ 11 callersMethodmakeSureDetached
* @param {InputReceiver} reciever
src/js/core/input_distributor.js:117
↓ 11 callersMethodradians
(number)
src/js/globals.d.ts:136
↓ 11 callersMethodupdate
* Updates the camera * @param {number} dt Delta time in milliseconds
src/js/game/camera.js:780
↓ 10 callersMethodapply
* @param {Application} app * @param {any} value
src/js/profile/setting_types.js:46
next →1–100 of 2,842, ranked by callers