mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-03-01 00:35:36 +08:00
优化场景LUA处理
This commit is contained in:
1 parent
58b98f189d
commit
353403606d
9 files changed
+201
-63
No files matched your search
@@ -128,6 +128,14 @@ func ConvInt64ToBool(v int64) bool {
|
||||
}
|
||||
}
|
||||
|
||||
func ConvRetCodeToBool(v int64) bool {
|
||||
if v == 0 {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
func ConvListToMap[T any](l []T) map[uint64]T {
|
||||
ret := make(map[uint64]T)
|
||||
for index, value := range l {
|
||||
|
||||
Reference in new issue
Block a user