当前位置:网站首页>[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}
边栏推荐
- FLIR blackfly s industrial camera: synchronous shooting of multiple cameras through external trigger
- 一片叶子两三万?植物消费爆火背后的“阳谋”
- Correct use of BigDecimal
- go swagger使用
- STM32F4---通用定时器更新中断
- 使用Ceres进行slam必须要弄清楚的几个类和函数
- Treadpoolconfig thread pool configuration in real projects
- FLIR blackfly s usb3 industrial camera: white balance setting method
- 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!
- The boss is quarantined
猜你喜欢
FLIR blackfly s industrial camera: explanation and configuration of color correction and code setting method
【论文阅读|深读】RolNE: Improving the Quality of Network Embedding with Structural Role Proximity
Cat recycling bin
leetcode:736. Lisp 语法解析【花里胡哨 + 栈 + 状态enumaotu + slots】
FLIR blackfly s industrial camera: auto exposure configuration and code
Lombok同时使⽤@Data和@Builder 的坑
ROS學習(23)action通信機制
Centos8 install MySQL 8.0 using yum x
【服务器数据恢复】raid损坏导致戴尔某型号服务器崩溃的数据恢复案例
FLIR blackfly s usb3 industrial camera: white balance setting method
随机推荐
MetaForce原力元宇宙开发搭建丨佛萨奇2.0系统开发
真实项目,用微信小程序开门编码实现(完结)
Zhang Ping'an: accelerate cloud digital innovation and jointly build an industrial smart ecosystem
Cat recycling bin
Why am I warned that the 'CMAKE_ TOOLCHAIN_ FILE' variable is not used by the project?
3D laser slam: time synchronization of livox lidar hardware
Recommended collection!! Which is the best flutter status management plug-in? Please look at the ranking list of yard farmers on the island!
Analyze "C language" [advanced] paid knowledge [II]
2022 system integration project management engineer examination knowledge point: Mobile Internet
建议收藏!!Flutter状态管理插件哪家强?请看岛上码农的排行榜!
Big guys gather | nextarch foundation cloud development meetup is coming!
TiFlash 源码阅读(四)TiFlash DDL 模块设计及实现分析
BigDecimal 的正确使用方式
阿里云中间件开源往事
Batch delete data in SQL - set in entity
New generation cloud native message queue (I)
Recent applet development records
张平安:加快云上数字创新,共建产业智慧生态
Metaforce force meta universe development and construction - fossage 2.0 system development
Schedulx v1.4.0 and SaaS versions are released, and you can experience the advanced functions of cost reduction and efficiency increase for free!