优化场景LUA处理

This commit is contained in:
flswld committed 2023-03-03 11:48:42 +08:00
1 parent 58b98f189d
commit 353403606d
9 files changed
+201 -63

No files matched your search

+8
View File
@@ -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 {