当前位置:网站首页>[xlua notes] array of lua to array of C #
[xlua notes] array of lua to array of C #
2022-07-07 02:20:00 【Start()】
To C# Of string Group :
-- Pass in a Lua String group of
-- Return to one C# String group of
function GetStringList(var)
local count = #var
local lis = CS.System.Array.CreateInstance(typeof(CS.System.String),count)
for i=0,count-1 do
lis[i] = var[i+1]
end
return lis
end
To C# Of int Group :
-- Pass in a Lua Of int Group
-- Return to one C# Of int Group
function GetIntList(var)
local count = #var
local lis = CS.System.Array.CreateInstance(typeof(CS.System.Int32),count)
for i=0,count-1 do
lis[i] = var[i+1]
end
return lis
end
To C# Of float Group :
-- Pass in a Lua Of float Group
-- Return to one C# Of float Group
function GetFloatList(var)
local count = #var
local lis = CS.System.Array.CreateInstance(typeof(CS.System.Single),count)
for i=0,count-1 do
lis[i] = var[i+1]
end
return lis
end
Lua Group representation :
Group name = { Elements 1, Elements 2, Elements 3}
边栏推荐
- Several classes and functions that must be clarified when using Ceres to slam
- 【Unity】升级版·Excel数据解析,自动创建对应C#类,自动创建ScriptableObject生成类,自动序列化Asset文件
- Blackfly s usb3 industrial camera: buffer processing
- 老板被隔离了
- Dall-E Mini的Mega版本模型发布,已开放下载
- Tiflash source code reading (IV) design and implementation analysis of tiflash DDL module
- Cat recycling bin
- [server data recovery] data recovery case of a Dell server crash caused by raid damage
- 纽约大学 CITIES 研究中心招聘理学硕士和博士后
- Zhang Ping'an: accelerate cloud digital innovation and jointly build an industrial smart ecosystem
猜你喜欢

The GPG keys listed for the "MySQL 8.0 community server" repository are already ins

红外相机:巨哥红外MAG32产品介绍

Batch delete data in SQL - set in entity

Infrared camera: juge infrared mag32 product introduction
![[server data recovery] data recovery case of a Dell server crash caused by raid damage](/img/29/e07bf1f8eae9be19f6eed69be5642d.jpg)
[server data recovery] data recovery case of a Dell server crash caused by raid damage

The last line of defense of cloud primary mixing department: node waterline design

Flir Blackfly S USB3 工业相机:白平衡设置方法

MySQL execution process and sequence

张平安:加快云上数字创新,共建产业智慧生态

centos8安裝mysql報錯:The GPG keys listed for the “MySQL 8.0 Community Server“ repository are already ins
随机推荐
Tiflash source code reading (IV) design and implementation analysis of tiflash DDL module
UC伯克利助理教授Jacob Steinhardt预测AI基准性能:AI在数学等领域的进展比预想要快,但鲁棒性基准性能进展较慢
Date processing tool class dateutils (tool class 1)
FLIR blackfly s industrial camera: explanation and configuration of color correction and code setting method
纽约大学 CITIES 研究中心招聘理学硕士和博士后
leetcode:5. 最长回文子串【dp + 抓着超时的尾巴】
RC振荡器和晶体振荡器简介
投资的再思考
2022 system integration project management engineer examination knowledge point: Mobile Internet
ROS learning (25) rviz plugin
The GPG keys listed for the "MySQL 8.0 community server" repository are already ins
Blackfly S USB3工业相机:缓冲区处理
[paper reading | deep reading] graphsage:inductive representation learning on large graphs
FLIR blackfly s usb3 industrial camera: how to use counters and timers
[paper reading | deep reading] dngr:deep neural networks for learning graph representations
云原生混部最后一道防线:节点水位线设计
Freeswitch dials extension number source code tracking
Data connection mode in low code platform (Part 1)
SchedulX V1.4.0及SaaS版发布,免费体验降本增效高级功能!
FLIR blackfly s industrial camera: auto exposure configuration and code