@rbxts/types 1.0.821 → 1.0.823
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/include/generated/None.d.ts +1 -1
- package/include/roblox.d.ts +25 -0
- package/package.json +1 -1
|
@@ -11514,7 +11514,7 @@ interface ContextActionService extends Instance {
|
|
|
11514
11514
|
* @param this A service used to bind user input to contextual actions.
|
|
11515
11515
|
* @param actionName
|
|
11516
11516
|
*/
|
|
11517
|
-
GetBoundActionInfo(this: ContextActionService, actionName: string): BoundActionInfo;
|
|
11517
|
+
GetBoundActionInfo(this: ContextActionService, actionName: string): BoundActionInfo | {};
|
|
11518
11518
|
/**
|
|
11519
11519
|
* Return the `BackpackItem.TextureId` of a `Tool` currently `equipped` by the `Player`.
|
|
11520
11520
|
*
|
package/include/roblox.d.ts
CHANGED
|
@@ -270,22 +270,47 @@ interface BundleInfo {
|
|
|
270
270
|
|
|
271
271
|
type TeleportData = string | number | boolean | Array<unknown> | Map<unknown, unknown>;
|
|
272
272
|
|
|
273
|
+
interface GameJoinContext {
|
|
274
|
+
JoinSource: Enum.JoinSource;
|
|
275
|
+
ItemType?: Enum.AvatarItemType;
|
|
276
|
+
AssetId?: string;
|
|
277
|
+
OutfitId?: string;
|
|
278
|
+
AssetType?: Enum.AssetType;
|
|
279
|
+
}
|
|
280
|
+
|
|
273
281
|
interface PlayerJoinInfo {
|
|
274
282
|
/** The `DataModel.GameId` of the experience the `Player` teleported from. Only present if the player teleports to the current experience and if a server calls the teleport function. */
|
|
275
283
|
SourceGameId?: number;
|
|
276
284
|
/** The `DataModel.PlaceId` of the place the `Player` teleported from. Only present if the player teleports to the current place and a server calls the teleport function. */
|
|
277
285
|
SourcePlaceId?: number;
|
|
286
|
+
/** The `Player.UserId` of the player who invited the current player to the experience. Use this data to identify the referrer and trigger reward logic. */
|
|
287
|
+
ReferredByPlayerId?: number;
|
|
278
288
|
/** An array containing the `UserId` numbers of the users teleported alongside the `Player`. Only present if the player teleported as part of a group. */
|
|
279
289
|
Members?: Array<number>;
|
|
280
290
|
/** Reflects the `teleportData` specified in the original teleport. Useful for sharing information between servers the player teleports to. Only present if `teleportData` was specified and a server calls the teleport function. */
|
|
281
291
|
TeleportData?: TeleportData;
|
|
282
292
|
/** A string containing launch data specified in the URL the player clicks to join the experience. Only present if the URL contains launch data. */
|
|
283
293
|
LaunchData?: string;
|
|
294
|
+
/** A dictionary that includes relevant information based on the context of the game join. */
|
|
295
|
+
GameJoinContext?: GameJoinContext;
|
|
284
296
|
}
|
|
285
297
|
|
|
286
298
|
interface BoundActionInfo {
|
|
299
|
+
/** Describes whether a touch button should be created on TouchEnabled devices */
|
|
300
|
+
createTouchButton: boolean;
|
|
301
|
+
/** The description of action set by SetDescription */
|
|
302
|
+
description?: string;
|
|
303
|
+
/** The title of the action set by SetTitle */
|
|
304
|
+
title?: string;
|
|
305
|
+
/** The image of the action's touch button set by SetImage */
|
|
306
|
+
image?: string;
|
|
307
|
+
/** The input types passed to BindAction for which this action will trigger */
|
|
287
308
|
inputTypes: Array<Enum.KeyCode | Enum.PlayerActions | Enum.UserInputType | string>;
|
|
309
|
+
/** Describes the priority level of the action.
|
|
310
|
+
* Priority level will still be included even if `BindActionAtPriority` wasn't used - by default it will be 2000.
|
|
311
|
+
*/
|
|
288
312
|
priorityLevel: number;
|
|
313
|
+
/** Describes the index of the action on the stack (increasing) */
|
|
289
314
|
stackOrder: number;
|
|
290
315
|
}
|
|
291
316
|
|