ReflectionService
Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.
Up and coming
Look up any class with its properties, methods and events, Roblox's too, so a tool can work on any object.
use ReflectionService gives it. GetClass and the other Get members read ShotSystem's own classes; GetRobloxClass and the other GetRoblox members read Roblox's, with defaults and enums. LoadApiDumpAsync adds Roblox's functions and events from an API dump. Apart from the Async members, everything is read from memory and never waits.
A service: write use ReflectionService.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
| Version | string | The Roblox version of the class database the GetRoblox members read. |
Methods
| Name | Arguments | Returns | Description |
|---|---|---|---|
| GetClass | (className: string) | ReflectedClass? | A ShotSystem class by name, with its superclass, its doc and whether it is a service and creatable. |
| GetClasses | () | { ReflectedClass } | |
| GetPropertiesOfClass | (className: string) | { ReflectedProperty } | Every property of the class, inherited ones included. |
| GetMethodsOfClass | (className: string) | { ReflectedMethod } | Every method of the class with its parameters, returns and whether it waits. |
| GetEventsOfClass | (className: string) | { ReflectedEvent } | |
| GetTypeDefinition | (className: string) | string | The class as Luau type text. |
| IsA | (className: string, baseName: string) | boolean | |
| GetRobloxClass | (className: string) | RobloxClassInfo? | One of Roblox's own classes, for tools that write Roblox code. |
| GetRobloxClassNames | () | { string } | |
| GetRobloxPropertiesOfClass | (className: string, inherited: boolean?) | { RobloxPropertyInfo } | A Roblox class's properties, each with its datatype, scriptability, tags and default; inherited ones too when inherited is true. |
| GetRobloxDefault | (className: string, property: string) | any | |
| GetEnumNames | () | { string } | |
| GetEnum | (name: string) | { [string]: number }? | |
| LoadApiDumpAsync yields | (path: string) | (boolean, string?) | Reads a full API dump JSON file, adding the functions, events and callbacks the built-in class database lacks. |
| GetRobloxMembersOfClass | (className: string, inherited: boolean?) | { RobloxMemberInfo } | A Roblox class's properties, functions, events and callbacks, once LoadApiDumpAsync has run. |
| WriteDefinitionsAsync yields | (classNames: { string }, path: string) | (boolean, string?) | Writes Luau type definitions for those classes to a file at the path. |
From ShotInstance 33
ClassNameNameParentAncestryChangedAttributeChangedChangedChildAddedChildRemovedDestroyingAddTagClearAllChildrenCloneDestroyFindFirstAncestorFindFirstAncestorOfClassFindFirstAncestorWhichIsAFindFirstChildFindFirstChildOfClassFindFirstChildWhichIsAGetAttributeGetAttributeChangedSignalGetAttributesGetChildrenGetDescendantsGetFullNameGetPropertyChangedSignalGetTagsHasTagIsAIsAncestorOfIsDescendantOfRemoveTagSetAttribute
