@rbxts/types 1.0.773 → 1.0.775
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 +33 -4
- package/include/generated/enums.d.ts +193 -0
- package/package.json +1 -1
|
@@ -101,6 +101,7 @@ interface Services {
|
|
|
101
101
|
PlaceStatsService: PlaceStatsService;
|
|
102
102
|
PlatformCloudStorageService: PlatformCloudStorageService;
|
|
103
103
|
PlatformFriendsService: PlatformFriendsService;
|
|
104
|
+
PlayerHydrationService: PlayerHydrationService;
|
|
104
105
|
Players: Players;
|
|
105
106
|
PlayerViewService: PlayerViewService;
|
|
106
107
|
PluginManagementService: PluginManagementService;
|
|
@@ -1633,7 +1634,7 @@ interface AnalyticsService extends Instance {
|
|
|
1633
1634
|
statistics?: { [index: string]: number },
|
|
1634
1635
|
customData?: unknown,
|
|
1635
1636
|
): void;
|
|
1636
|
-
LogEconomyEvent(this: AnalyticsService, player: Player, flowType: CastsToEnum<Enum.AnalyticsEconomyFlowType>, currencyType: string,
|
|
1637
|
+
LogEconomyEvent(this: AnalyticsService, player: Player, flowType: CastsToEnum<Enum.AnalyticsEconomyFlowType>, currencyType: string, amount: number, endingBalance: number, transactionType: string, itemSku?: string, customFields?: object): void;
|
|
1637
1638
|
LogFunnelStepEvent(this: AnalyticsService, player: Player, funnelName: string, funnelSessionId?: string, step?: number, stepName?: string, customFields?: object): void;
|
|
1638
1639
|
LogOnboardingFunnelStepEvent(this: AnalyticsService, player: Player, step: number, stepName?: string, customFields?: object): void;
|
|
1639
1640
|
LogProgressionCompleteEvent(this: AnalyticsService, player: Player, progressionPathName: string, level: number, levelName?: string, customFields?: object): void;
|
|
@@ -3084,6 +3085,10 @@ interface AvatarCreationService extends Instance {
|
|
|
3084
3085
|
* Tags: Yields
|
|
3085
3086
|
*/
|
|
3086
3087
|
CreateAvatarGenerationSessionAsync(this: AvatarCreationService, player: Player): AvatarGenerationSession;
|
|
3088
|
+
/**
|
|
3089
|
+
* Tags: Yields
|
|
3090
|
+
*/
|
|
3091
|
+
GetAvatarGenerationConfig(this: AvatarCreationService): object;
|
|
3087
3092
|
/**
|
|
3088
3093
|
* Tags: Yields
|
|
3089
3094
|
*/
|
|
@@ -5271,6 +5276,10 @@ interface Beam extends Instance {
|
|
|
5271
5276
|
* 
|
|
5272
5277
|
*/
|
|
5273
5278
|
LightInfluence: number;
|
|
5279
|
+
/**
|
|
5280
|
+
* Tags: Hidden, NotReplicated
|
|
5281
|
+
*/
|
|
5282
|
+
LocalTransparencyModifier: number;
|
|
5274
5283
|
/**
|
|
5275
5284
|
* Sets how many straight segments the [Beam](https://developer.roblox.com/en-us/api-reference/class/Beam) is made up of.
|
|
5276
5285
|
*
|
|
@@ -9828,6 +9837,7 @@ interface EditableMesh extends DataModelMesh {
|
|
|
9828
9837
|
* @deprecated
|
|
9829
9838
|
*/
|
|
9830
9839
|
readonly _nominal_EditableMesh: unique symbol;
|
|
9840
|
+
SkinningEnabled: boolean;
|
|
9831
9841
|
AddTriangle(this: EditableMesh, vertexId0: number, vertexId1: number, vertexId2: number): number;
|
|
9832
9842
|
AddVertex(this: EditableMesh, p: Vector3): number;
|
|
9833
9843
|
FindClosestPointOnSurface(this: EditableMesh, point: Vector3): LuaTuple<[number, Vector3, Vector3]>;
|
|
@@ -27339,6 +27349,10 @@ interface ParticleEmitter extends Instance {
|
|
|
27339
27349
|
* By default, this value is 1 if inserted with Studio tools. If inserted using `Instance.new`, it is 0.
|
|
27340
27350
|
*/
|
|
27341
27351
|
LightInfluence: number;
|
|
27352
|
+
/**
|
|
27353
|
+
* Tags: Hidden, NotReplicated
|
|
27354
|
+
*/
|
|
27355
|
+
LocalTransparencyModifier: number;
|
|
27342
27356
|
/**
|
|
27343
27357
|
* The LockedToPart property determines if particles will “stick” to the emission source (the [Attachment](https://developer.roblox.com/en-us/api-reference/class/Attachment) or [BasePart](https://developer.roblox.com/en-us/api-reference/class/BasePart) to which the [ParticleEmitter](https://developer.roblox.com/en-us/api-reference/class/ParticleEmitter) is parented).
|
|
27344
27358
|
*
|
|
@@ -28419,6 +28433,8 @@ interface Player extends Instance {
|
|
|
28419
28433
|
* You should not use this function for data that can be changed. For example, the amount of in-game currency the user currently has. This is because GetJoinData cannot guarantee a malicious user is not transmitting data from a previous session. For data like this, you should rely on [GlobalDataStores](https://developer.roblox.com/en-us/api-reference/class/GlobalDataStore).
|
|
28420
28434
|
*
|
|
28421
28435
|
* As with all cases, you should implement proper server validation to ensure your game is secure. For more information see this article on [Game Security](https://developer.roblox.com/en-us/articles/game-security).
|
|
28436
|
+
*
|
|
28437
|
+
* Tags: CustomLuaState
|
|
28422
28438
|
*/
|
|
28423
28439
|
GetJoinData(this: Player): PlayerJoinInfo;
|
|
28424
28440
|
/**
|
|
@@ -28818,6 +28834,17 @@ interface Player extends Instance {
|
|
|
28818
28834
|
readonly OnTeleport: RBXScriptSignal<(teleportState: Enum.TeleportState, placeId: number, spawnName: string) => void>;
|
|
28819
28835
|
}
|
|
28820
28836
|
|
|
28837
|
+
interface PlayerHydrationService extends Instance {
|
|
28838
|
+
/**
|
|
28839
|
+
* **DO NOT USE!**
|
|
28840
|
+
*
|
|
28841
|
+
* This field exists to force TypeScript to recognize this as a nominal type
|
|
28842
|
+
* @hidden
|
|
28843
|
+
* @deprecated
|
|
28844
|
+
*/
|
|
28845
|
+
readonly _nominal_PlayerHydrationService: unique symbol;
|
|
28846
|
+
}
|
|
28847
|
+
|
|
28821
28848
|
/** [PlayerScripts](https://developer.roblox.com/en-us/api-reference/class/PlayerScripts) is a container object located inside [Player](https://developer.roblox.com/en-us/api-reference/class/Player) objects within the [Players](https://developer.roblox.com/en-us/api-reference/class/Players) game service. It is created automatically when a player joins the game. Its main purpose is to contain [LocalScript](https://developer.roblox.com/en-us/api-reference/class/LocalScript)s copied from the [StarterPlayerScripts](https://developer.roblox.com/en-us/api-reference/class/StarterPlayerScripts) container within the [StarterPlayer](https://developer.roblox.com/en-us/api-reference/class/StarterPlayer) game service, which happens once upon creation. Descendant `LocalScripts` of [PlayerScripts](https://developer.roblox.com/en-us/api-reference/class/PlayerScripts) will run code on the client of the [Player](https://developer.roblox.com/en-us/api-reference/class/Player).
|
|
28822
28849
|
*
|
|
28823
28850
|
* Unlike the [Backpack](https://developer.roblox.com/en-us/api-reference/class/Backpack) and [PlayerGui](https://developer.roblox.com/en-us/api-reference/class/PlayerGui) containers, the [PlayerScripts](https://developer.roblox.com/en-us/api-reference/class/PlayerScripts) container is not accessible to the server. Server [Script](https://developer.roblox.com/en-us/api-reference/class/Script) objects will not run when parented to [PlayerScripts](https://developer.roblox.com/en-us/api-reference/class/PlayerScripts).
|
|
@@ -33365,6 +33392,7 @@ interface SurfaceAppearance extends Instance {
|
|
|
33365
33392
|
* @deprecated
|
|
33366
33393
|
*/
|
|
33367
33394
|
readonly _nominal_SurfaceAppearance: unique symbol;
|
|
33395
|
+
Color: Color3;
|
|
33368
33396
|
}
|
|
33369
33397
|
|
|
33370
33398
|
/** The [Team](https://developer.roblox.com/en-us/api-reference/class/Team) class represents a faction in a Roblox place. The only valid parent for a Team is in the [Teams](https://developer.roblox.com/en-us/api-reference/class/Teams) service. Teams offer a range of features that are useful to developers that can be divided into two rough groups:
|
|
@@ -35100,6 +35128,10 @@ interface Trail extends Instance {
|
|
|
35100
35128
|
* * [Beam.LightEmission](https://developer.roblox.com/en-us/api-reference/property/Beam/LightEmission), an identical property used by [Beam](https://developer.roblox.com/en-us/api-reference/class/Beam)s
|
|
35101
35129
|
*/
|
|
35102
35130
|
LightInfluence: number;
|
|
35131
|
+
/**
|
|
35132
|
+
* Tags: Hidden, NotReplicated
|
|
35133
|
+
*/
|
|
35134
|
+
LocalTransparencyModifier: number;
|
|
35103
35135
|
/**
|
|
35104
35136
|
* The MinLength of a [Trail](https://developer.roblox.com/en-us/api-reference/class/Trail) determines the maximum length of each of the segments in the trail.
|
|
35105
35137
|
*
|
|
@@ -37962,9 +37994,6 @@ interface VRService extends Instance {
|
|
|
37962
37994
|
*/
|
|
37963
37995
|
readonly _nominal_VRService: unique symbol;
|
|
37964
37996
|
AutomaticScaling: Enum.VRScaling;
|
|
37965
|
-
/**
|
|
37966
|
-
* Tags: NotBrowsable
|
|
37967
|
-
*/
|
|
37968
37997
|
AvatarGestures: boolean;
|
|
37969
37998
|
FadeOutViewOnCollision: boolean;
|
|
37970
37999
|
/**
|
|
@@ -9511,6 +9511,19 @@ declare namespace Enum {
|
|
|
9511
9511
|
}
|
|
9512
9512
|
export type ItemLineAlignment = ItemLineAlignment.Automatic | ItemLineAlignment.Start | ItemLineAlignment.Center | ItemLineAlignment.End | ItemLineAlignment.Stretch;
|
|
9513
9513
|
|
|
9514
|
+
export namespace JoinSource {
|
|
9515
|
+
export interface CreatedItemAttribution extends globalThis.EnumItem {
|
|
9516
|
+
Name: "CreatedItemAttribution";
|
|
9517
|
+
Value: 1;
|
|
9518
|
+
EnumType: typeof globalThis.Enum.JoinSource;
|
|
9519
|
+
}
|
|
9520
|
+
|
|
9521
|
+
export const CreatedItemAttribution: CreatedItemAttribution;
|
|
9522
|
+
|
|
9523
|
+
export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.JoinSource>;
|
|
9524
|
+
}
|
|
9525
|
+
export type JoinSource = JoinSource.CreatedItemAttribution;
|
|
9526
|
+
|
|
9514
9527
|
export namespace JointCreationMode {
|
|
9515
9528
|
export interface All extends globalThis.EnumItem {
|
|
9516
9529
|
Name: "All";
|
|
@@ -11941,6 +11954,157 @@ declare namespace Enum {
|
|
|
11941
11954
|
}
|
|
11942
11955
|
export type LoadDynamicHeads = LoadDynamicHeads.Default | LoadDynamicHeads.Disabled | LoadDynamicHeads.Enabled;
|
|
11943
11956
|
|
|
11957
|
+
export namespace MarketplaceBulkPurchasePromptStatus {
|
|
11958
|
+
export interface Completed extends globalThis.EnumItem {
|
|
11959
|
+
Name: "Completed";
|
|
11960
|
+
Value: 1;
|
|
11961
|
+
EnumType: typeof globalThis.Enum.MarketplaceBulkPurchasePromptStatus;
|
|
11962
|
+
}
|
|
11963
|
+
|
|
11964
|
+
export const Completed: Completed;
|
|
11965
|
+
|
|
11966
|
+
export interface Aborted extends globalThis.EnumItem {
|
|
11967
|
+
Name: "Aborted";
|
|
11968
|
+
Value: 2;
|
|
11969
|
+
EnumType: typeof globalThis.Enum.MarketplaceBulkPurchasePromptStatus;
|
|
11970
|
+
}
|
|
11971
|
+
|
|
11972
|
+
export const Aborted: Aborted;
|
|
11973
|
+
|
|
11974
|
+
export interface Error extends globalThis.EnumItem {
|
|
11975
|
+
Name: "Error";
|
|
11976
|
+
Value: 3;
|
|
11977
|
+
EnumType: typeof globalThis.Enum.MarketplaceBulkPurchasePromptStatus;
|
|
11978
|
+
}
|
|
11979
|
+
|
|
11980
|
+
export const Error: Error;
|
|
11981
|
+
|
|
11982
|
+
export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.MarketplaceBulkPurchasePromptStatus>;
|
|
11983
|
+
}
|
|
11984
|
+
export type MarketplaceBulkPurchasePromptStatus = MarketplaceBulkPurchasePromptStatus.Completed | MarketplaceBulkPurchasePromptStatus.Aborted | MarketplaceBulkPurchasePromptStatus.Error;
|
|
11985
|
+
|
|
11986
|
+
export namespace MarketplaceItemPurchaseStatus {
|
|
11987
|
+
export interface Success extends globalThis.EnumItem {
|
|
11988
|
+
Name: "Success";
|
|
11989
|
+
Value: 1;
|
|
11990
|
+
EnumType: typeof globalThis.Enum.MarketplaceItemPurchaseStatus;
|
|
11991
|
+
}
|
|
11992
|
+
|
|
11993
|
+
export const Success: Success;
|
|
11994
|
+
|
|
11995
|
+
export interface SystemError extends globalThis.EnumItem {
|
|
11996
|
+
Name: "SystemError";
|
|
11997
|
+
Value: 2;
|
|
11998
|
+
EnumType: typeof globalThis.Enum.MarketplaceItemPurchaseStatus;
|
|
11999
|
+
}
|
|
12000
|
+
|
|
12001
|
+
export const SystemError: SystemError;
|
|
12002
|
+
|
|
12003
|
+
export interface AlreadyOwned extends globalThis.EnumItem {
|
|
12004
|
+
Name: "AlreadyOwned";
|
|
12005
|
+
Value: 3;
|
|
12006
|
+
EnumType: typeof globalThis.Enum.MarketplaceItemPurchaseStatus;
|
|
12007
|
+
}
|
|
12008
|
+
|
|
12009
|
+
export const AlreadyOwned: AlreadyOwned;
|
|
12010
|
+
|
|
12011
|
+
export interface InsufficientRobux extends globalThis.EnumItem {
|
|
12012
|
+
Name: "InsufficientRobux";
|
|
12013
|
+
Value: 4;
|
|
12014
|
+
EnumType: typeof globalThis.Enum.MarketplaceItemPurchaseStatus;
|
|
12015
|
+
}
|
|
12016
|
+
|
|
12017
|
+
export const InsufficientRobux: InsufficientRobux;
|
|
12018
|
+
|
|
12019
|
+
export interface QuantityLimitExceeded extends globalThis.EnumItem {
|
|
12020
|
+
Name: "QuantityLimitExceeded";
|
|
12021
|
+
Value: 5;
|
|
12022
|
+
EnumType: typeof globalThis.Enum.MarketplaceItemPurchaseStatus;
|
|
12023
|
+
}
|
|
12024
|
+
|
|
12025
|
+
export const QuantityLimitExceeded: QuantityLimitExceeded;
|
|
12026
|
+
|
|
12027
|
+
export interface QuotaExceeded extends globalThis.EnumItem {
|
|
12028
|
+
Name: "QuotaExceeded";
|
|
12029
|
+
Value: 6;
|
|
12030
|
+
EnumType: typeof globalThis.Enum.MarketplaceItemPurchaseStatus;
|
|
12031
|
+
}
|
|
12032
|
+
|
|
12033
|
+
export const QuotaExceeded: QuotaExceeded;
|
|
12034
|
+
|
|
12035
|
+
export interface NotForSale extends globalThis.EnumItem {
|
|
12036
|
+
Name: "NotForSale";
|
|
12037
|
+
Value: 7;
|
|
12038
|
+
EnumType: typeof globalThis.Enum.MarketplaceItemPurchaseStatus;
|
|
12039
|
+
}
|
|
12040
|
+
|
|
12041
|
+
export const NotForSale: NotForSale;
|
|
12042
|
+
|
|
12043
|
+
export interface NotAvailableForPurchaser extends globalThis.EnumItem {
|
|
12044
|
+
Name: "NotAvailableForPurchaser";
|
|
12045
|
+
Value: 8;
|
|
12046
|
+
EnumType: typeof globalThis.Enum.MarketplaceItemPurchaseStatus;
|
|
12047
|
+
}
|
|
12048
|
+
|
|
12049
|
+
export const NotAvailableForPurchaser: NotAvailableForPurchaser;
|
|
12050
|
+
|
|
12051
|
+
export interface PriceMismatch extends globalThis.EnumItem {
|
|
12052
|
+
Name: "PriceMismatch";
|
|
12053
|
+
Value: 9;
|
|
12054
|
+
EnumType: typeof globalThis.Enum.MarketplaceItemPurchaseStatus;
|
|
12055
|
+
}
|
|
12056
|
+
|
|
12057
|
+
export const PriceMismatch: PriceMismatch;
|
|
12058
|
+
|
|
12059
|
+
export interface SoldOut extends globalThis.EnumItem {
|
|
12060
|
+
Name: "SoldOut";
|
|
12061
|
+
Value: 10;
|
|
12062
|
+
EnumType: typeof globalThis.Enum.MarketplaceItemPurchaseStatus;
|
|
12063
|
+
}
|
|
12064
|
+
|
|
12065
|
+
export const SoldOut: SoldOut;
|
|
12066
|
+
|
|
12067
|
+
export interface PurchaserIsSeller extends globalThis.EnumItem {
|
|
12068
|
+
Name: "PurchaserIsSeller";
|
|
12069
|
+
Value: 11;
|
|
12070
|
+
EnumType: typeof globalThis.Enum.MarketplaceItemPurchaseStatus;
|
|
12071
|
+
}
|
|
12072
|
+
|
|
12073
|
+
export const PurchaserIsSeller: PurchaserIsSeller;
|
|
12074
|
+
|
|
12075
|
+
export interface InsufficientMembership extends globalThis.EnumItem {
|
|
12076
|
+
Name: "InsufficientMembership";
|
|
12077
|
+
Value: 12;
|
|
12078
|
+
EnumType: typeof globalThis.Enum.MarketplaceItemPurchaseStatus;
|
|
12079
|
+
}
|
|
12080
|
+
|
|
12081
|
+
export const InsufficientMembership: InsufficientMembership;
|
|
12082
|
+
|
|
12083
|
+
export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.MarketplaceItemPurchaseStatus>;
|
|
12084
|
+
}
|
|
12085
|
+
export type MarketplaceItemPurchaseStatus = MarketplaceItemPurchaseStatus.Success | MarketplaceItemPurchaseStatus.SystemError | MarketplaceItemPurchaseStatus.AlreadyOwned | MarketplaceItemPurchaseStatus.InsufficientRobux | MarketplaceItemPurchaseStatus.QuantityLimitExceeded | MarketplaceItemPurchaseStatus.QuotaExceeded | MarketplaceItemPurchaseStatus.NotForSale | MarketplaceItemPurchaseStatus.NotAvailableForPurchaser | MarketplaceItemPurchaseStatus.PriceMismatch | MarketplaceItemPurchaseStatus.SoldOut | MarketplaceItemPurchaseStatus.PurchaserIsSeller | MarketplaceItemPurchaseStatus.InsufficientMembership;
|
|
12086
|
+
|
|
12087
|
+
export namespace MarketplaceProductType {
|
|
12088
|
+
export interface AvatarAsset extends globalThis.EnumItem {
|
|
12089
|
+
Name: "AvatarAsset";
|
|
12090
|
+
Value: 1;
|
|
12091
|
+
EnumType: typeof globalThis.Enum.MarketplaceProductType;
|
|
12092
|
+
}
|
|
12093
|
+
|
|
12094
|
+
export const AvatarAsset: AvatarAsset;
|
|
12095
|
+
|
|
12096
|
+
export interface AvatarBundle extends globalThis.EnumItem {
|
|
12097
|
+
Name: "AvatarBundle";
|
|
12098
|
+
Value: 2;
|
|
12099
|
+
EnumType: typeof globalThis.Enum.MarketplaceProductType;
|
|
12100
|
+
}
|
|
12101
|
+
|
|
12102
|
+
export const AvatarBundle: AvatarBundle;
|
|
12103
|
+
|
|
12104
|
+
export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.MarketplaceProductType>;
|
|
12105
|
+
}
|
|
12106
|
+
export type MarketplaceProductType = MarketplaceProductType.AvatarAsset | MarketplaceProductType.AvatarBundle;
|
|
12107
|
+
|
|
11944
12108
|
export namespace MarkupKind {
|
|
11945
12109
|
export interface PlainText extends globalThis.EnumItem {
|
|
11946
12110
|
Name: "PlainText";
|
|
@@ -15015,6 +15179,35 @@ declare namespace Enum {
|
|
|
15015
15179
|
}
|
|
15016
15180
|
export type RenderPriority = RenderPriority.First | RenderPriority.Input | RenderPriority.Camera | RenderPriority.Character | RenderPriority.Last;
|
|
15017
15181
|
|
|
15182
|
+
export namespace RenderingCacheOptimizationMode {
|
|
15183
|
+
export interface Default extends globalThis.EnumItem {
|
|
15184
|
+
Name: "Default";
|
|
15185
|
+
Value: 0;
|
|
15186
|
+
EnumType: typeof globalThis.Enum.RenderingCacheOptimizationMode;
|
|
15187
|
+
}
|
|
15188
|
+
|
|
15189
|
+
export const Default: Default;
|
|
15190
|
+
|
|
15191
|
+
export interface Disabled extends globalThis.EnumItem {
|
|
15192
|
+
Name: "Disabled";
|
|
15193
|
+
Value: 1;
|
|
15194
|
+
EnumType: typeof globalThis.Enum.RenderingCacheOptimizationMode;
|
|
15195
|
+
}
|
|
15196
|
+
|
|
15197
|
+
export const Disabled: Disabled;
|
|
15198
|
+
|
|
15199
|
+
export interface Enabled extends globalThis.EnumItem {
|
|
15200
|
+
Name: "Enabled";
|
|
15201
|
+
Value: 2;
|
|
15202
|
+
EnumType: typeof globalThis.Enum.RenderingCacheOptimizationMode;
|
|
15203
|
+
}
|
|
15204
|
+
|
|
15205
|
+
export const Enabled: Enabled;
|
|
15206
|
+
|
|
15207
|
+
export function GetEnumItems(this: globalThis.Enum): Array<globalThis.Enum.RenderingCacheOptimizationMode>;
|
|
15208
|
+
}
|
|
15209
|
+
export type RenderingCacheOptimizationMode = RenderingCacheOptimizationMode.Default | RenderingCacheOptimizationMode.Disabled | RenderingCacheOptimizationMode.Enabled;
|
|
15210
|
+
|
|
15018
15211
|
export namespace RenderingTestComparisonMethod {
|
|
15019
15212
|
export interface psnr extends globalThis.EnumItem {
|
|
15020
15213
|
Name: "psnr";
|