release: v0.2.1 fix TArray signatures and add primitive type tokens in unlua.d.ts

This commit is contained in:
szy73711 committed 2026-11-29 03:07:06 +08:00
1 parent 051af4ca74
commit 70630f689f
4 files changed
+33 -5

No files matched your search

+10
View File
@@ -4,6 +4,16 @@ All notable changes to `ts2lua-unreal` will be documented in this file.
The format is based on [Semantic Versioning](https://semver.org/).
## [0.2.1] - 2026-11-29
### Fixed
- 修正 [types/unlua.d.ts](types/unlua.d.ts) 中 `UE.TArray` 与 UnLua `LuaLib_Array.cpp` 不一致的两处签名:
- `RemoveItem(item: T): number`(实际返回移除元素数量 `int32`,而非 `boolean`)。
- `GetData(): unknown`(无参调用,传参会在运行时触发 `luaL_error`)。
### Added
- 在 [types/unlua.d.ts](types/unlua.d.ts) 中补充 UnLua 原生基础类型描述符 Token(`UE.int8`~`UE.uint64`、`UE.float`、`UE.double`、`UE.bool`、`UE.FName`、`UE.FString`),支持直接使用 `UE.TArray(UE.int32)` / `UE.TMap(UE.FString, UE.float)` 构造原生类型容器。
## [0.2.0] - 2026-11-29
### Changed