roblox_standard.lua 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689
  1. local empty = {}
  2. local read_write = { read_only = false }
  3. local read_write_class = { read_only = false, other_fields = true }
  4. local read_only = { read_only = true }
  5. local function def_fields(field_list)
  6. local fields = {}
  7. for _, field in ipairs(field_list) do
  8. fields[field] = empty
  9. end
  10. return { fields = fields }
  11. end
  12. local enum = def_fields({"Value", "Name"})
  13. local function def_enum(field_list)
  14. local fields = {}
  15. for _, field in ipairs(field_list) do
  16. fields[field] = enum
  17. end
  18. fields["GetEnumItems"] = read_only
  19. return { fields = fields }
  20. end
  21. stds.roblox = {
  22. globals = {
  23. script = {
  24. other_fields = true,
  25. fields = {
  26. Source = read_write;
  27. GetHash = read_write;
  28. Disabled = read_write;
  29. LinkedSource = read_write;
  30. CurrentEditor = read_write_class;
  31. Archivable = read_write;
  32. ClassName = read_only;
  33. DataCost = read_only;
  34. Name = read_write;
  35. Parent = read_write_class;
  36. RobloxLocked = read_write;
  37. ClearAllChildren = read_write;
  38. Clone = read_write;
  39. Destroy = read_write;
  40. FindFirstAncestor = read_write;
  41. FindFirstAncestorOfClass = read_write;
  42. FindFirstAncestorWhichIsA = read_write;
  43. FindFirstChild = read_write;
  44. FindFirstChildOfClass = read_write;
  45. FindFirstChildWhichIsA = read_write;
  46. GetChildren = read_write;
  47. GetDebugId = read_write;
  48. GetDescendants = read_write;
  49. GetFullName = read_write;
  50. GetPropertyChangedSignal = read_write;
  51. IsA = read_write;
  52. IsAncestorOf = read_write;
  53. IsDescendantOf = read_write;
  54. WaitForChild = read_write;
  55. AncestryChanged = read_write;
  56. Changed = read_write;
  57. ChildAdded = read_write;
  58. ChildRemoved = read_write;
  59. DescendantAdded = read_write;
  60. DescendantRemoving = read_write;
  61. }
  62. },
  63. game = {
  64. other_fields = true,
  65. fields = {
  66. CreatorId = read_only;
  67. CreatorType = read_only;
  68. GameId = read_only;
  69. GearGenreSetting = read_only;
  70. Genre = read_only;
  71. IsSFFlagsLoaded = read_only;
  72. JobId = read_only;
  73. PlaceId = read_only;
  74. PlaceVersion = read_only;
  75. PrivateServerId = read_only;
  76. PrivateServerOwnerId = read_only;
  77. Workspace = read_only;
  78. BindToClose = read_write;
  79. GetJobIntervalPeakFraction = read_write;
  80. GetJobTimePeakFraction = read_write;
  81. GetJobsExtendedStats = read_write;
  82. GetJobsInfo = read_write;
  83. GetObjects = read_write;
  84. IsGearTypeAllowed = read_write;
  85. IsLoaded = read_write;
  86. Load = read_write;
  87. OpenScreenshotsFolder = read_write;
  88. OpenVideosFolder = read_write;
  89. ReportInGoogleAnalytics = read_write;
  90. SetPlaceId = read_write;
  91. SetUniverseId = read_write;
  92. Shutdown = read_write;
  93. HttpGetAsync = read_write;
  94. HttpPostAsync = read_write;
  95. GraphicsQualityChangeRequest = read_write;
  96. Loaded = read_write;
  97. ScreenshotReady = read_write;
  98. FindService = read_write;
  99. GetService = read_write;
  100. Close = read_write;
  101. CloseLate = read_write;
  102. ServiceAdded = read_write;
  103. ServiceRemoving = read_write;
  104. Archivable = read_write;
  105. ClassName = read_only;
  106. DataCost = read_only;
  107. Name = read_write;
  108. Parent = read_write_class;
  109. RobloxLocked = read_write;
  110. ClearAllChildren = read_write;
  111. Clone = read_write;
  112. Destroy = read_write;
  113. FindFirstAncestor = read_write;
  114. FindFirstAncestorOfClass = read_write;
  115. FindFirstAncestorWhichIsA = read_write;
  116. FindFirstChild = read_write;
  117. FindFirstChildOfClass = read_write;
  118. FindFirstChildWhichIsA = read_write;
  119. GetChildren = read_write;
  120. GetDebugId = read_write;
  121. GetDescendants = read_write;
  122. GetFullName = read_write;
  123. GetPropertyChangedSignal = read_write;
  124. IsA = read_write;
  125. IsAncestorOf = read_write;
  126. IsDescendantOf = read_write;
  127. WaitForChild = read_write;
  128. AncestryChanged = read_write;
  129. Changed = read_write;
  130. ChildAdded = read_write;
  131. ChildRemoved = read_write;
  132. DescendantAdded = read_write;
  133. DescendantRemoving = read_write;
  134. }
  135. },
  136. workspace = {
  137. other_fields = true,
  138. fields = {
  139. AllowThirdPartySales = read_write;
  140. AutoJointsMode = read_write;
  141. CurrentCamera = read_write_class;
  142. DistributedGameTime = read_write;
  143. FallenPartsDestroyHeight = read_write;
  144. FilteringEnabled = read_write;
  145. Gravity = read_write;
  146. StreamingEnabled = read_write;
  147. StreamingMinRadius = read_write;
  148. StreamingTargetRadius = read_write;
  149. TemporaryLegacyPhysicsSolverOverride = read_write;
  150. Terrain = read_only;
  151. BreakJoints = read_write;
  152. ExperimentalSolverIsEnabled = read_write;
  153. FindPartOnRay = read_write;
  154. FindPartOnRayWithIgnoreList = read_write;
  155. FindPartOnRayWithWhitelist = read_write;
  156. FindPartsInRegion3 = read_write;
  157. FindPartsInRegion3WithIgnoreList = read_write;
  158. FindPartsInRegion3WithWhiteList = read_write;
  159. GetNumAwakeParts = read_write;
  160. GetPhysicsThrottling = read_write;
  161. GetRealPhysicsFPS = read_write;
  162. IsRegion3Empty = read_write;
  163. IsRegion3EmptyWithIgnoreList = read_write;
  164. JoinToOutsiders = read_write;
  165. MakeJoints = read_write;
  166. PGSIsEnabled = read_write;
  167. SetPhysicsThrottleEnabled = read_write;
  168. UnjoinFromOutsiders = read_write;
  169. ZoomToExtents = read_write;
  170. PrimaryPart = read_write_class;
  171. BreakJoints = read_write;
  172. GetBoundingBox = read_write;
  173. GetExtentsSize = read_write;
  174. GetPrimaryPartCFrame = read_write;
  175. MakeJoints = read_write;
  176. MoveTo = read_write;
  177. SetPrimaryPartCFrame = read_write;
  178. TranslateBy = read_write;
  179. Archivable = read_write;
  180. ClassName = read_only;
  181. DataCost = read_only;
  182. Name = read_write;
  183. Parent = read_write_class;
  184. RobloxLocked = read_write;
  185. ClearAllChildren = read_write;
  186. Clone = read_write;
  187. Destroy = read_write;
  188. FindFirstAncestor = read_write;
  189. FindFirstAncestorOfClass = read_write;
  190. FindFirstAncestorWhichIsA = read_write;
  191. FindFirstChild = read_write;
  192. FindFirstChildOfClass = read_write;
  193. FindFirstChildWhichIsA = read_write;
  194. GetChildren = read_write;
  195. GetDebugId = read_write;
  196. GetDescendants = read_write;
  197. GetFullName = read_write;
  198. GetPropertyChangedSignal = read_write;
  199. IsA = read_write;
  200. IsAncestorOf = read_write;
  201. IsDescendantOf = read_write;
  202. WaitForChild = read_write;
  203. AncestryChanged = read_write;
  204. Changed = read_write;
  205. ChildAdded = read_write;
  206. ChildRemoved = read_write;
  207. DescendantAdded = read_write;
  208. DescendantRemoving = read_write;
  209. }
  210. },
  211. },
  212. read_globals = {
  213. -- Methods
  214. delay = empty;
  215. settings = empty;
  216. spawn = empty;
  217. tick = empty;
  218. time = empty;
  219. typeof = empty;
  220. version = empty;
  221. wait = empty;
  222. warn = empty;
  223. -- Libraries
  224. math = def_fields({"abs", "acos", "asin", "atan", "atan2", "ceil", "clamp", "cos", "cosh",
  225. "deg", "exp", "floor", "fmod", "frexp", "ldexp", "log", "log10", "max", "min", "modf",
  226. "noise", "pow", "rad", "random", "randomseed", "sign", "sin", "sinh", "sqrt", "tan",
  227. "tanh", "huge", "pi"}),
  228. debug = def_fields({"traceback", "profilebegin", "profileend"}),
  229. utf8 = def_fields({"char", "codes", "codepoint", "len", "offset", "graphemes",
  230. "nfcnormalize", "nfdnormalize", "charpattern"}),
  231. -- Types
  232. Axes = def_fields({"new"}),
  233. BrickColor = def_fields({"new", "palette", "random", "White", "Gray", "DarkGray", "Black",
  234. "Red", "Yellow", "Green", "Blue"}),
  235. CFrame = def_fields({"new", "fromEulerAnglesXYZ", "Angles", "fromOrientation",
  236. "fromAxisAngle", "fromMatrix"}),
  237. Color3 = def_fields({"new", "fromRGB", "fromHSV", "toHSV"}),
  238. ColorSequence = def_fields({"new"}),
  239. ColorSequenceKeypoint = def_fields({"new"}),
  240. DockWidgetPluginGuiInfo = def_fields({"new"}),
  241. Enums = def_fields({"GetEnums"}),
  242. Faces = def_fields({"new"}),
  243. Instance = def_fields({"new"}),
  244. NumberRange = def_fields({"new"}),
  245. NumberSequence = def_fields({"new"}),
  246. NumberSequenceKeypoint = def_fields({"new"}),
  247. PhysicalProperties = def_fields({"new"}),
  248. Random = def_fields({"new"}),
  249. Ray = def_fields({"new"}),
  250. Rect = def_fields({"new"}),
  251. Region3 = def_fields({"new"}),
  252. Region3int16 = def_fields({"new"}),
  253. TweenInfo = def_fields({"new"}),
  254. UDim = def_fields({"new"}),
  255. UDim2 = def_fields({"new"}),
  256. Vector2 = def_fields({"new"}),
  257. Vector2int16 = def_fields({"new"}),
  258. Vector3 = def_fields({"new", "FromNormalId", "FromAxis"}),
  259. Vector3int16 = def_fields({"new"}),
  260. -- Enums
  261. Enum = {
  262. readonly = true,
  263. fields = {
  264. ActionType = def_enum({"Nothing", "Pause", "Lose", "Draw", "Win"}),
  265. ActuatorRelativeTo = def_enum({"Attachment0", "Attachment1", "World"}),
  266. ActuatorType = def_enum({"None", "Motor", "Servo"}),
  267. AlignType = def_enum({"Parallel", "Perpendicular"}),
  268. AnimationPriority = def_enum({"Idle", "Movement", "Action", "Core"}),
  269. AppShellActionType = def_enum({"None", "OpenApp", "TapChatTab",
  270. "TapConversationEntry", "TapAvatarTab", "ReadConversation", "TapGamePageTab",
  271. "TapHomePageTab", "GamePageLoaded", "HomePageLoaded", "AvatarEditorPageLoaded"}),
  272. AspectType = def_enum({"FitWithinMaxSize", "ScaleWithParentSize"}),
  273. AssetType = def_enum({"Image", "TeeShirt", "Audio", "Mesh", "Lua", "Hat", "Place",
  274. "Model", "Shirt", "Pants", "Decal", "Head", "Face", "Gear", "Badge",
  275. "Animation", "Torso", "RightArm", "LeftArm", "LeftLeg", "RightLeg", "Package",
  276. "GamePass", "Plugin", "MeshPart", "HairAccessory", "FaceAccessory",
  277. "NeckAccessory", "ShoulderAccessory", "FrontAccessory", "BackAccessory",
  278. "WaistAccessory", "ClimbAnimation", "DeathAnimation", "FallAnimation",
  279. "IdleAnimation", "JumpAnimation", "RunAnimation", "SwimAnimation",
  280. "WalkAnimation", "PoseAnimation", "EarAccessory", "EyeAccessory"}),
  281. AutoJointsMode = def_enum({"Default", "Explicit", "LegacyImplicit"}),
  282. AvatarContextMenuOption = def_enum({"Friend", "Chat", "Emote"}),
  283. AvatarJointPositionType = def_enum({"Fixed", "ArtistIntent"}),
  284. Axis = def_enum({"X", "Y", "Z"}),
  285. BinType = def_enum({"Script", "GameTool", "Grab", "Clone", "Hammer"}),
  286. BodyPart = def_enum({"Head", "Torso", "LeftArm", "RightArm", "LeftLeg", "RightLeg"}),
  287. BodyPartR15 = def_enum({"Head", "UpperTorso", "LowerTorso", "LeftFoot",
  288. "LeftLowerLeg", "LeftUpperLeg", "RightFoot", "RightLowerLeg", "RightUpperLeg",
  289. "LeftHand", "LeftLowerArm", "LeftUpperArm", "RightHand", "RightLowerArm",
  290. "RightUpperArm", "RootPart", "Unknown"}),
  291. Button = def_enum({"Jump", "Dismount"}),
  292. ButtonStyle = def_enum({"Custom", "RobloxButtonDefault", "RobloxButton",
  293. "RobloxRoundButton", "RobloxRoundDefaultButton", "RobloxRoundDropdownButton"}),
  294. CameraMode = def_enum({"Classic", "LockFirstPerson"}),
  295. CameraPanMode = def_enum({"Classic", "EdgeBump"}),
  296. CameraType = def_enum({"Fixed", "Watch", "Attach", "Track", "Follow", "Custom",
  297. "Scriptable", "Orbital"}),
  298. CellBlock = def_enum({"Solid", "VerticalWedge", "CornerWedge",
  299. "InverseCornerWedge", "HorizontalWedge"}),
  300. CellMaterial = def_enum({"Empty", "Grass", "Sand", "Brick", "Granite", "Asphalt",
  301. "Iron", "Aluminum", "Gold", "WoodPlank", "WoodLog", "Gravel", "CinderBlock",
  302. "MossyStone", "Cement", "RedPlastic", "BluePlastic", "Water"}),
  303. CellOrientation = def_enum({"NegZ", "X", "Z", "NegX"}),
  304. CenterDialogType = def_enum({"UnsolicitedDialog", "PlayerInitiatedDialog",
  305. "ModalDialog", "QuitDialog"}),
  306. ChatCallbackType = def_enum({"OnCreatingChatWindow", "OnClientSendingMessage",
  307. "OnClientFormattingMessage", "OnServerReceivingMessage"}),
  308. ChatColor = def_enum({"Blue", "Green", "Red", "White"}),
  309. ChatMode = def_enum({"Menu", "TextAndMenu"}),
  310. ChatPrivacyMode = def_enum({"AllUsers", "NoOne", "Friends"}),
  311. ChatStyle = def_enum({"Classic", "Bubble", "ClassicAndBubble"}),
  312. CollisionFidelity = def_enum({"Default", "Hull", "Box"}),
  313. ComputerCameraMovementMode = def_enum({"Default", "Follow", "Classic", "Orbital"}),
  314. ComputerMovementMode = def_enum({"Default", "KeyboardMouse", "ClickToMove"}),
  315. ConnectionError = def_enum({"OK", "DisconnectErrors", "DisconnectBadhash",
  316. "DisconnectSecurityKeyMismatch", "DisconnectNewSecurityKeyMismatch",
  317. "DisconnectProtocolMismatch", "DisconnectReceivePacketError",
  318. "DisconnectReceivePacketStreamError", "DisconnectSendPacketError",
  319. "DisconnectIllegalTeleport", "DisconnectDuplicatePlayer",
  320. "DisconnectDuplicateTicket", "DisconnectTimeout", "DisconnectLuaKick",
  321. "DisconnectOnRemoteSysStats", "DisconnectHashTimeout",
  322. "DisconnectCloudEditKick", "DisconnectPlayerless", "DisconnectEvicted",
  323. "DisconnectDevMaintenance", "DisconnectRobloxMaintenance", "DisconnectRejoin",
  324. "DisconnectConnectionLost", "DisconnectIdle", "DisconnectRaknetErrors",
  325. "DisconnectWrongVersion", "PlacelaunchErrors", "PlacelaunchDisabled",
  326. "PlacelaunchError", "PlacelaunchGameEnded", "PlacelaunchGameFull",
  327. "PlacelaunchUserLeft", "PlacelaunchRestricted", "PlacelaunchUnauthorized",
  328. "PlacelaunchFlooded", "PlacelaunchHashExpired", "PlacelaunchHashException",
  329. "PlacelaunchPartyCannotFit", "PlacelaunchHttpError",
  330. "PlacelaunchCustomMessage", "PlacelaunchOtherError", "TeleportErrors",
  331. "TeleportFailure", "TeleportGameNotFound", "TeleportGameEnded",
  332. "TeleportGameFull", "TeleportUnauthorized", "TeleportFlooded",
  333. "TeleportIsTeleporting"}),
  334. ConnectionState = def_enum({"Connected", "Disconnected"}),
  335. ContextActionPriority = def_enum({"Low", "Medium", "Default", "High"}),
  336. ContextActionResult = def_enum({"Pass", "Sink"}),
  337. ControlMode = def_enum({"MouseLockSwitch", "Classic"}),
  338. CoreGuiType = def_enum({"PlayerList", "Health", "Backpack", "Chat", "All"}),
  339. CreatorType = def_enum({"User", "Group"}),
  340. CurrencyType = def_enum({"Default", "Robux", "Tix"}),
  341. CustomCameraMode = def_enum({"Default", "Follow", "Classic"}),
  342. DEPRECATED_DebuggerDataModelPreference = def_enum({"Server", "Client"}),
  343. DataStoreRequestType = def_enum({"GetAsync", "SetIncrementAsync", "UpdateAsync",
  344. "GetSortedAsync", "SetIncrementSortedAsync", "OnUpdate"}),
  345. DevCameraOcclusionMode = def_enum({"Zoom", "Invisicam"}),
  346. DevComputerCameraMovementMode = def_enum({"UserChoice", "Classic", "Follow",
  347. "Orbital"}),
  348. DevComputerMovementMode = def_enum({"UserChoice", "KeyboardMouse", "ClickToMove",
  349. "Scriptable"}),
  350. DevTouchCameraMovementMode = def_enum({"UserChoice", "Classic", "Follow",
  351. "Orbital"}),
  352. DevTouchMovementMode = def_enum({"UserChoice", "Thumbstick", "DPad", "Thumbpad",
  353. "ClickToMove", "Scriptable", "DynamicThumbstick"}),
  354. DeveloperMemoryTag = def_enum({"Internal", "HttpCache", "Instances", "Signals",
  355. "LuaHeap", "Script", "PhysicsCollision", "PhysicsParts", "GraphicsSolidModels",
  356. "GraphicsMeshParts", "GraphicsParticles", "GraphicsParts",
  357. "GraphicsSpatialHash", "GraphicsTerrain", "GraphicsTexture",
  358. "GraphicsTextureCharacter", "Sounds", "StreamingSounds", "TerrainVoxels",
  359. "Gui", "Animation", "Navigation"}),
  360. DialogBehaviorType = def_enum({"SinglePlayer", "MultiplePlayers"}),
  361. DialogPurpose = def_enum({"Quest", "Help", "Shop"}),
  362. DialogTone = def_enum({"Neutral", "Friendly", "Enemy"}),
  363. DominantAxis = def_enum({"Width", "Height"}),
  364. EasingDirection = def_enum({"In", "Out", "InOut"}),
  365. EasingStyle = def_enum({"Linear", "Sine", "Back", "Quad", "Quart", "Quint",
  366. "Bounce", "Elastic"}),
  367. ElasticBehavior = def_enum({"WhenScrollable", "Always", "Never"}),
  368. EnviromentalPhysicsThrottle = def_enum({"DefaultAuto", "Disabled", "Always",
  369. "Skip2", "Skip4", "Skip8", "Skip16"}),
  370. ErrorReporting = def_enum({"DontReport", "Prompt", "Report"}),
  371. ExplosionType = def_enum({"NoCraters", "Craters", "CratersAndDebris"}),
  372. FillDirection = def_enum({"Horizontal", "Vertical"}),
  373. FilterResult = def_enum({"Rejected", "Accepted"}),
  374. Font = def_enum({"Legacy", "Arial", "ArialBold", "SourceSans", "SourceSansBold",
  375. "SourceSansSemibold", "SourceSansLight", "SourceSansItalic", "Bodoni",
  376. "Garamond", "Cartoon", "Code", "Highway", "SciFi", "Arcade", "Fantasy",
  377. "Antique", "Gotham", "GothamSemibold", "GothamBold", "GothamBlack"}),
  378. FontSize = def_enum({"Size8", "Size9", "Size10", "Size11", "Size12", "Size14",
  379. "Size18", "Size24", "Size36", "Size48", "Size28", "Size32", "Size42", "Size60",
  380. "Size96"}),
  381. FormFactor = def_enum({"Symmetric", "Brick", "Plate", "Custom"}),
  382. FrameStyle = def_enum({"Custom", "ChatBlue", "RobloxSquare", "RobloxRound",
  383. "ChatGreen", "ChatRed", "DropShadow"}),
  384. FramerateManagerMode = def_enum({"Automatic", "On", "Off"}),
  385. FriendRequestEvent = def_enum({"Issue", "Revoke", "Accept", "Deny"}),
  386. FriendStatus = def_enum({"Unknown", "NotFriend", "Friend", "FriendRequestSent",
  387. "FriendRequestReceived"}),
  388. FunctionalTestResult = def_enum({"Passed", "Warning", "Error"}),
  389. GameAvatarType = def_enum({"R6", "R15", "PlayerChoice"}),
  390. GearGenreSetting = def_enum({"AllGenres", "MatchingGenreOnly"}),
  391. GearType = def_enum({"MeleeWeapons", "RangedWeapons", "Explosives", "PowerUps",
  392. "NavigationEnhancers", "MusicalInstruments", "SocialItems", "BuildingTools",
  393. "Transport"}),
  394. Genre = def_enum({"All", "TownAndCity", "Fantasy", "SciFi", "Ninja", "Scary",
  395. "Pirate", "Adventure", "Sports", "Funny", "WildWest", "War", "SkatePark",
  396. "Tutorial"}),
  397. GraphicsMode = def_enum({"Automatic", "Direct3D9", "Direct3D11", "OpenGL", "Metal",
  398. "Vulkan", "NoGraphics"}),
  399. HandlesStyle = def_enum({"Resize", "Movement"}),
  400. HorizontalAlignment = def_enum({"Center", "Left", "Right"}),
  401. HoverAnimateSpeed = def_enum({"VerySlow", "Slow", "Medium", "Fast", "VeryFast"}),
  402. HttpCachePolicy = def_enum({"None", "Full", "DataOnly", "Default",
  403. "InternalRedirectRefresh"}),
  404. HttpContentType = def_enum({"ApplicationJson", "ApplicationXml",
  405. "ApplicationUrlEncoded", "TextPlain", "TextXml"}),
  406. HttpError = def_enum({"OK", "InvalidUrl", "DnsResolve", "ConnectFail",
  407. "OutOfMemory", "TimedOut", "TooManyRedirects", "InvalidRedirect", "NetFail",
  408. "Aborted", "SslConnectFail", "Unknown"}),
  409. HttpRequestType = def_enum({"Default", "MarketplaceService", "Players", "Chat",
  410. "Avatar", "Analytics", "Localization"}),
  411. HumanoidDisplayDistanceType = def_enum({"Viewer", "Subject", "None"}),
  412. HumanoidHealthDisplayType = def_enum({"DisplayWhenDamaged", "AlwaysOn",
  413. "AlwaysOff"}),
  414. HumanoidRigType = def_enum({"R6", "R15"}),
  415. HumanoidStateType = def_enum({"FallingDown", "Running", "RunningNoPhysics",
  416. "Climbing", "StrafingNoPhysics", "Ragdoll", "GettingUp", "Jumping", "Landed",
  417. "Flying", "Freefall", "Seated", "PlatformStanding", "Dead", "Swimming",
  418. "Physics", "None"}),
  419. InOut = def_enum({"Edge", "Inset", "Center"}),
  420. InfoType = def_enum({"Asset", "Product", "GamePass"}),
  421. InitialDockState = def_enum({"Top", "Bottom", "Left", "Right", "Float"}),
  422. InputType = def_enum({"NoInput", "Constant", "Sin"}),
  423. JointCreationMode = def_enum({"All", "Surface", "None"}),
  424. JointType = def_enum({"None", "Rotate", "RotateP", "RotateV", "Glue", "Weld",
  425. "Snap"}),
  426. KeyCode = def_enum({"Unknown", "Backspace", "Tab", "Clear", "Return", "Pause",
  427. "Escape", "Space", "QuotedDouble", "Hash", "Dollar", "Percent", "Ampersand",
  428. "Quote", "LeftParenthesis", "RightParenthesis", "Asterisk", "Plus", "Comma",
  429. "Minus", "Period", "Slash", "Zero", "One", "Two", "Three", "Four", "Five",
  430. "Six", "Seven", "Eight", "Nine", "Colon", "Semicolon", "LessThan", "Equals",
  431. "GreaterThan", "Question", "At", "LeftBracket", "BackSlash", "RightBracket",
  432. "Caret", "Underscore", "Backquote", "A", "B", "C", "D", "E", "F", "G", "H",
  433. "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X",
  434. "Y", "Z", "LeftCurly", "Pipe", "RightCurly", "Tilde", "Delete", "KeypadZero",
  435. "KeypadOne", "KeypadTwo", "KeypadThree", "KeypadFour", "KeypadFive",
  436. "KeypadSix", "KeypadSeven", "KeypadEight", "KeypadNine", "KeypadPeriod",
  437. "KeypadDivide", "KeypadMultiply", "KeypadMinus", "KeypadPlus", "KeypadEnter",
  438. "KeypadEquals", "Up", "Down", "Right", "Left", "Insert", "Home", "End",
  439. "PageUp", "PageDown", "LeftShift", "RightShift", "LeftMeta", "RightMeta",
  440. "LeftAlt", "RightAlt", "LeftControl", "RightControl", "CapsLock", "NumLock",
  441. "ScrollLock", "LeftSuper", "RightSuper", "Mode", "Compose", "Help", "Print",
  442. "SysReq", "Break", "Menu", "Power", "Euro", "Undo", "F1", "F2", "F3", "F4",
  443. "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "F13", "F14", "F15",
  444. "World0", "World1", "World2", "World3", "World4", "World5", "World6", "World7",
  445. "World8", "World9", "World10", "World11", "World12", "World13", "World14",
  446. "World15", "World16", "World17", "World18", "World19", "World20", "World21",
  447. "World22", "World23", "World24", "World25", "World26", "World27", "World28",
  448. "World29", "World30", "World31", "World32", "World33", "World34", "World35",
  449. "World36", "World37", "World38", "World39", "World40", "World41", "World42",
  450. "World43", "World44", "World45", "World46", "World47", "World48", "World49",
  451. "World50", "World51", "World52", "World53", "World54", "World55", "World56",
  452. "World57", "World58", "World59", "World60", "World61", "World62", "World63",
  453. "World64", "World65", "World66", "World67", "World68", "World69", "World70",
  454. "World71", "World72", "World73", "World74", "World75", "World76", "World77",
  455. "World78", "World79", "World80", "World81", "World82", "World83", "World84",
  456. "World85", "World86", "World87", "World88", "World89", "World90", "World91",
  457. "World92", "World93", "World94", "World95", "ButtonX", "ButtonY", "ButtonA",
  458. "ButtonB", "ButtonR1", "ButtonL1", "ButtonR2", "ButtonL2", "ButtonR3",
  459. "ButtonL3", "ButtonStart", "ButtonSelect", "DPadLeft", "DPadRight", "DPadUp",
  460. "DPadDown", "Thumbstick1", "Thumbstick2"}),
  461. KeywordFilterType = def_enum({"Include", "Exclude"}),
  462. Language = def_enum({"Default"}),
  463. LeftRight = def_enum({"Left", "Center", "Right"}),
  464. LevelOfDetailSetting = def_enum({"High", "Medium", "Low"}),
  465. Limb = def_enum({"Head", "Torso", "LeftArm", "RightArm", "LeftLeg", "RightLeg",
  466. "Unknown"}),
  467. ListDisplayMode = def_enum({"Horizontal", "Vertical"}),
  468. ListenerType = def_enum({"Camera", "CFrame", "ObjectPosition", "ObjectCFrame"}),
  469. Material = def_enum({"Plastic", "Wood", "Slate", "Concrete", "CorrodedMetal",
  470. "DiamondPlate", "Foil", "Grass", "Ice", "Marble", "Granite", "Brick", "Pebble",
  471. "Sand", "Fabric", "SmoothPlastic", "Metal", "WoodPlanks", "Cobblestone", "Air",
  472. "Water", "Rock", "Glacier", "Snow", "Sandstone", "Mud", "Basalt", "Ground",
  473. "CrackedLava", "Neon", "Glass", "Asphalt", "LeafyGrass", "Salt", "Limestone",
  474. "Pavement", "ForceField"}),
  475. MembershipType = def_enum({"None", "BuildersClub", "TurboBuildersClub",
  476. "OutrageousBuildersClub"}),
  477. MeshType = def_enum({"Head", "Torso", "Wedge", "Prism", "Pyramid", "ParallelRamp",
  478. "RightAngleRamp", "CornerWedge", "Brick", "Sphere", "Cylinder", "FileMesh"}),
  479. MessageType = def_enum({"MessageOutput", "MessageInfo", "MessageWarning",
  480. "MessageError"}),
  481. MouseBehavior = def_enum({"Default", "LockCenter", "LockCurrentPosition"}),
  482. MoveState = def_enum({"Stopped", "Coasting", "Pushing", "Stopping", "AirFree"}),
  483. NameOcclusion = def_enum({"OccludeAll", "EnemyOcclusion", "NoOcclusion"}),
  484. NetworkOwnership = def_enum({"Automatic", "Manual", "OnContact"}),
  485. NormalId = def_enum({"Top", "Bottom", "Back", "Front", "Right", "Left"}),
  486. OutputLayoutMode = def_enum({"Horizontal", "Vertical"}),
  487. OverrideMouseIconBehavior = def_enum({"None", "ForceShow", "ForceHide"}),
  488. PacketPriority = def_enum({"IMMEDIATE_PRIORITY", "HIGH_PRIORITY",
  489. "MEDIUM_PRIORITY", "LOW_PRIORITY"}),
  490. PartType = def_enum({"Ball", "Block", "Cylinder"}),
  491. PathStatus = def_enum({"Success", "ClosestNoPath", "ClosestOutOfRange",
  492. "FailStartNotEmpty", "FailFinishNotEmpty", "NoPath"}),
  493. PathWaypointAction = def_enum({"Walk", "Jump"}),
  494. PermissionLevelShown = def_enum({"Game", "RobloxGame", "RobloxScript", "Studio",
  495. "Roblox"}),
  496. Platform = def_enum({"Windows", "OSX", "IOS", "Android", "XBoxOne", "PS4", "PS3",
  497. "XBox360", "WiiU", "NX", "Ouya", "AndroidTV", "Chromecast", "Linux", "SteamOS",
  498. "WebOS", "DOS", "BeOS", "UWP", "None"}),
  499. PlaybackState = def_enum({"Begin", "Delayed", "Playing", "Paused", "Completed",
  500. "Cancelled"}),
  501. PlayerActions = def_enum({"CharacterForward", "CharacterBackward", "CharacterLeft",
  502. "CharacterRight", "CharacterJump"}),
  503. PlayerChatType = def_enum({"All", "Team", "Whisper"}),
  504. PoseEasingDirection = def_enum({"Out", "InOut", "In"}),
  505. PoseEasingStyle = def_enum({"Linear", "Constant", "Elastic", "Cubic", "Bounce"}),
  506. PrivilegeType = def_enum({"Owner", "Admin", "Member", "Visitor", "Banned"}),
  507. ProductPurchaseDecision = def_enum({"NotProcessedYet", "PurchaseGranted"}),
  508. QualityLevel = def_enum({"Automatic", "Level01", "Level02", "Level03", "Level04",
  509. "Level05", "Level06", "Level07", "Level08", "Level09", "Level10", "Level11",
  510. "Level12", "Level13", "Level14", "Level15", "Level16", "Level17", "Level18",
  511. "Level19", "Level20", "Level21"}),
  512. R15CollisionType = def_enum({"OuterBox", "InnerBox"}),
  513. RenderFidelity = def_enum({"Automatic", "Precise"}),
  514. RenderPriority = def_enum({"First", "Input", "Camera", "Character", "Last"}),
  515. RenderingTestComparisonMethod = def_enum({"psnr", "diff"}),
  516. ReverbType = def_enum({"NoReverb", "GenericReverb", "PaddedCell", "Room",
  517. "Bathroom", "LivingRoom", "StoneRoom", "Auditorium", "ConcertHall", "Cave",
  518. "Arena", "Hangar", "CarpettedHallway", "Hallway", "StoneCorridor", "Alley",
  519. "Forest", "City", "Mountains", "Quarry", "Plain", "ParkingLot", "SewerPipe",
  520. "UnderWater"}),
  521. RibbonTool = def_enum({"Select", "Scale", "Rotate", "Move", "Transform",
  522. "ColorPicker", "MaterialPicker", "Group", "Ungroup", "None"}),
  523. RollOffMode = def_enum({"Inverse", "Linear", "InverseTapered", "LinearSquare"}),
  524. RotationType = def_enum({"MovementRelative", "CameraRelative"}),
  525. RuntimeUndoBehavior = def_enum({"Aggregate", "Snapshot", "Hybrid"}),
  526. SaveFilter = def_enum({"SaveAll", "SaveWorld", "SaveGame"}),
  527. SavedQualitySetting = def_enum({"Automatic", "QualityLevel1", "QualityLevel2",
  528. "QualityLevel3", "QualityLevel4", "QualityLevel5", "QualityLevel6",
  529. "QualityLevel7", "QualityLevel8", "QualityLevel9", "QualityLevel10"}),
  530. ScaleType = def_enum({"Stretch", "Slice", "Tile", "Fit", "Crop"}),
  531. ScreenOrientation = def_enum({"LandscapeLeft", "LandscapeRight", "LandscapeSensor",
  532. "Portrait", "Sensor"}),
  533. ScrollBarInset = def_enum({"None", "ScrollBar", "Always"}),
  534. ScrollingDirection = def_enum({"X", "Y", "XY"}),
  535. ServerAudioBehavior = def_enum({"Enabled", "Muted", "OnlineGame"}),
  536. SizeConstraint = def_enum({"RelativeXY", "RelativeXX", "RelativeYY"}),
  537. SortOrder = def_enum({"LayoutOrder", "Name", "Custom"}),
  538. SoundType = def_enum({"NoSound", "Boing", "Bomb", "Break", "Click", "Clock",
  539. "Slingshot", "Page", "Ping", "Snap", "Splat", "Step", "StepOn", "Swoosh",
  540. "Victory"}),
  541. SpecialKey = def_enum({"Insert", "Home", "End", "PageUp", "PageDown", "ChatHotkey"}),
  542. StartCorner = def_enum({"TopLeft", "TopRight", "BottomLeft", "BottomRight"}),
  543. Status = def_enum({"Poison", "Confusion"}),
  544. StudioStyleGuideColor = def_enum({"MainBackground", "Titlebar", "Dropdown",
  545. "Tooltip", "Notification", "ScrollBar", "ScrollBarBackground", "TabBar", "Tab",
  546. "RibbonTab", "RibbonTabTopBar", "Button", "MainButton", "RibbonButton",
  547. "ViewPortBackground", "InputFieldBackground", "Item", "TableItem",
  548. "CategoryItem", "GameSettingsTableItem", "GameSettingsTooltip", "EmulatorBar",
  549. "EmulatorDropDown", "ColorPickerFrame", "CurrentMarker", "Border", "Shadow",
  550. "Light", "Dark", "Mid", "MainText", "SubText", "TitlebarText", "BrightText",
  551. "DimmedText", "LinkText", "WarningText", "ErrorText", "InfoText",
  552. "SensitiveText", "ScriptSideWidget", "ScriptBackground", "ScriptText",
  553. "ScriptSelectionText", "ScriptSelectionBackground",
  554. "ScriptFindSelectionBackground", "ScriptMatchingWordSelectionBackground",
  555. "ScriptOperator", "ScriptNumber", "ScriptString", "ScriptComment",
  556. "ScriptPreprocessor", "ScriptKeyword", "ScriptBuiltInFunction",
  557. "ScriptWarning", "ScriptError", "DebuggerCurrentLine", "DebuggerErrorLine",
  558. "DiffFilePathText", "DiffTextHunkInfo", "DiffTextNoChange", "DiffTextAddition",
  559. "DiffTextDeletion", "DiffTextSeparatorBackground",
  560. "DiffTextNoChangeBackground", "DiffTextAdditionBackground",
  561. "DiffTextDeletionBackground", "DiffLineNum", "DiffLineNumSeparatorBackground",
  562. "DiffLineNumNoChangeBackground", "DiffLineNumAdditionBackground",
  563. "DiffLineNumDeletionBackground", "DiffFilePathBackground",
  564. "DiffFilePathBorder", "Separator", "ButtonBorder", "ButtonText",
  565. "InputFieldBorder", "CheckedFieldBackground", "CheckedFieldBorder",
  566. "CheckedFieldIndicator", "HeaderSection", "Midlight", "StatusBar"}),
  567. StudioStyleGuideModifier = def_enum({"Default", "Selected", "Pressed", "Disabled",
  568. "Hover"}),
  569. Style = def_enum({"AlternatingSupports", "BridgeStyleSupports", "NoSupports"}),
  570. SurfaceConstraint = def_enum({"None", "Hinge", "SteppingMotor", "Motor"}),
  571. SurfaceType = def_enum({"Smooth", "Glue", "Weld", "Studs", "Inlet", "Universal",
  572. "Hinge", "Motor", "SteppingMotor", "SmoothNoOutlines"}),
  573. SwipeDirection = def_enum({"Right", "Left", "Up", "Down", "None"}),
  574. TableMajorAxis = def_enum({"RowMajor", "ColumnMajor"}),
  575. Technology = def_enum({"Legacy", "Voxel", "Compatibility"}),
  576. TeleportResult = def_enum({"Success", "Failure", "GameNotFound", "GameEnded",
  577. "GameFull", "Unauthorized", "Flooded", "IsTeleporting"}),
  578. TeleportState = def_enum({"RequestedFromServer", "Started", "WaitingForServer",
  579. "Failed", "InProgress"}),
  580. TeleportType = def_enum({"ToPlace", "ToInstance", "ToReservedServer"}),
  581. TextFilterContext = def_enum({"PublicChat", "PrivateChat"}),
  582. TextTruncate = def_enum({"None", "AtEnd"}),
  583. TextXAlignment = def_enum({"Left", "Center", "Right"}),
  584. TextYAlignment = def_enum({"Top", "Center", "Bottom"}),
  585. TextureMode = def_enum({"Stretch", "Wrap", "Static"}),
  586. TextureQueryType = def_enum({"NonHumanoid", "NonHumanoidOrphaned", "Humanoid",
  587. "HumanoidOrphaned"}),
  588. ThreadPoolConfig = def_enum({"Auto", "PerCore1", "PerCore2", "PerCore3",
  589. "PerCore4", "Threads1", "Threads2", "Threads3", "Threads4", "Threads8",
  590. "Threads16"}),
  591. ThrottlingPriority = def_enum({"Extreme", "ElevatedOnServer", "Default"}),
  592. ThumbnailSize = def_enum({"Size48x48", "Size180x180", "Size420x420", "Size60x60",
  593. "Size100x100", "Size150x150", "Size352x352"}),
  594. ThumbnailType = def_enum({"HeadShot", "AvatarBust", "AvatarThumbnail"}),
  595. TickCountSampleMethod = def_enum({"Fast", "Benchmark", "Precise"}),
  596. TopBottom = def_enum({"Top", "Center", "Bottom"}),
  597. TouchCameraMovementMode = def_enum({"Default", "Follow", "Classic", "Orbital"}),
  598. TouchMovementMode = def_enum({"Default", "Thumbstick", "DPad", "Thumbpad",
  599. "ClickToMove", "DynamicThumbstick"}),
  600. TweenStatus = def_enum({"Canceled", "Completed"}),
  601. UITheme = def_enum({"Light", "Dark"}),
  602. UiMessageType = def_enum({"UiMessageError", "UiMessageInfo"}),
  603. UploadSetting = def_enum({"Never", "Ask", "Always"}),
  604. UserCFrame = def_enum({"Head", "LeftHand", "RightHand"}),
  605. UserInputState = def_enum({"Begin", "Change", "End", "Cancel", "None"}),
  606. UserInputType = def_enum({"MouseButton1", "MouseButton2", "MouseButton3",
  607. "MouseWheel", "MouseMovement", "Touch", "Keyboard", "Focus", "Accelerometer",
  608. "Gyro", "Gamepad1", "Gamepad2", "Gamepad3", "Gamepad4", "Gamepad5", "Gamepad6",
  609. "Gamepad7", "Gamepad8", "TextInput", "InputMethod", "None"}),
  610. VRTouchpad = def_enum({"Left", "Right"}),
  611. VRTouchpadMode = def_enum({"Touch", "VirtualThumbstick", "ABXY"}),
  612. VerticalAlignment = def_enum({"Center", "Top", "Bottom"}),
  613. VerticalScrollBarPosition = def_enum({"Left", "Right"}),
  614. VibrationMotor = def_enum({"Large", "Small", "LeftTrigger", "RightTrigger",
  615. "LeftHand", "RightHand"}),
  616. VideoQualitySettings = def_enum({"LowResolution", "MediumResolution",
  617. "HighResolution"}),
  618. VirtualInputMode = def_enum({"Recording", "Playing", "None"}),
  619. WaterDirection = def_enum({"NegX", "X", "NegY", "Y", "NegZ", "Z"}),
  620. WaterForce = def_enum({"None", "Small", "Medium", "Strong", "Max"}),
  621. ZIndexBehavior = def_enum({"Global", "Sibling"}),
  622. }
  623. }
  624. },
  625. }
  626. stds.testez = {
  627. read_globals = {
  628. "describe",
  629. "it", "itFOCUS", "itSKIP",
  630. "FOCUS", "SKIP", "HACK_NO_XPCALL",
  631. "expect",
  632. }
  633. }
  634. stds.plugin = {
  635. read_globals = {
  636. "plugin",
  637. "DebuggerManager",
  638. }
  639. }
  640. ignore = {}
  641. std = "lua51+roblox"
  642. files["**/*.spec.lua"] = {
  643. std = "+testez",
  644. }