mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
Update changelog
This commit is contained in:
parent
f4609ffba6
commit
462ccb6d15
1 changed files with 24 additions and 0 deletions
24
CHANGELOG.md
24
CHANGELOG.md
|
@ -46,6 +46,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
print(meta.permissions) --> { readOnly: false }
|
||||
```
|
||||
|
||||
- Added `roblox.getReflectionDatabase` to access the builtin database containing information about classes and enums.
|
||||
|
||||
Example usage:
|
||||
|
||||
```lua
|
||||
local roblox = require("@lune/roblox")
|
||||
|
||||
local db = roblox.getReflectionDatabase()
|
||||
|
||||
print("There are", #db:GetClassNames(), "classes in the reflection database")
|
||||
|
||||
print("All base instance properties:")
|
||||
|
||||
local class = db:GetClass("Instance")
|
||||
for name, prop in class.Properties do
|
||||
print(string.format(
|
||||
"- %s with datatype %s and default value %s",
|
||||
prop.Name,
|
||||
prop.Datatype,
|
||||
tostring(class.DefaultProperties[prop.Name])
|
||||
))
|
||||
end
|
||||
```
|
||||
|
||||
- Added support for running directories with an `init.luau` or `init.lua` file in them in the CLI.
|
||||
|
||||
### Changed
|
||||
|
|
Loading…
Reference in a new issue