当前位置:网站首页>[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}
边栏推荐
- 张平安:加快云上数字创新,共建产业智慧生态
- 张平安:加快云上数字创新,共建产业智慧生态
- Threadlocalutils (tool class IV)
- TiFlash 源码阅读(四)TiFlash DDL 模块设计及实现分析
- Integrated navigation: product description and interface description of zhonghaida inav2
- ROS learning (24) plugin
- FLIR blackfly s industrial camera: synchronous shooting of multiple cameras through external trigger
- Flir Blackfly S USB3 工业相机:白平衡设置方法
- Draco - glTF模型压缩利器
- ROS learning (26) dynamic parameter configuration
猜你喜欢
ROS learning (24) plugin
Several classes and functions that must be clarified when using Ceres to slam
Alibaba cloud middleware open source past
[server data recovery] data recovery case of a Dell server crash caused by raid damage
Centos8 install MySQL 8.0 using yum x
Correct use of BigDecimal
Flir Blackfly S USB3 工业相机:白平衡设置方法
Batch delete data in SQL - set in entity
新一代云原生消息队列(一)
[paper reading | deep reading] graphsage:inductive representation learning on large graphs
随机推荐
Big guys gather | nextarch foundation cloud development meetup is coming!
15million employees are easy to manage, and the cloud native database gaussdb makes HR office more efficient
Robot team learning method to achieve 8.8 times human return
Collection recommandée!! Quel plug - in de gestion d'état flutter est le plus fort? Regardez le classement des manons de l'île, s'il vous plaît!
Date processing tool class dateutils (tool class 1)
纽约大学 CITIES 研究中心招聘理学硕士和博士后
ROS學習(23)action通信機制
Zabbix 5.0:通过LLD方式自动化监控阿里云RDS
[leetcode] day97 remove linked list elements
老板被隔离了
FLIR blackfly s usb3 industrial camera: how to use counters and timers
How did partydao turn a tweet into a $200million product Dao in one year
[server data recovery] data recovery case of a Dell server crash caused by raid damage
Schedulx v1.4.0 and SaaS versions are released, and you can experience the advanced functions of cost reduction and efficiency increase for free!
go swagger使用
Flir Blackfly S 工业相机 介绍
Seconds understand the delay and timing function of wechat applet
【论文阅读|深读】ANRL: Attributed Network Representation Learning via Deep Neural Networks
传感器:DS1302时钟芯片及驱动代码
centos8 用yum 安装MySQL 8.0.x