cdhowie / eluant Goto Github PK
View Code? Open in Web Editor NEWA set of C# bindings for Lua with a specific focus on building sandboxes.
License: MIT License
A set of C# bindings for Lua with a specific focus on building sandboxes.
License: MIT License
I'm considering using Lua as a modding tool for a game I'm developing. However I don't want to allow mods access to the hard drive, network, etc....
Basically I want to allow everything in Lua, save things that worry me such as file/network access. Access control would be even better, where mods could request network access from the user on installation/configuration, but not required.
Additionally I want to only allow Lua access to C# functions that I manually add.
Is it possible to handle .NET events in Lua script?
Hi,
after two years of testing, I had to say, that Eluant works very, very stable. Good job and thank you for sharing it with the community ๐
Now I have the problem, that strings in Lua and strings in C# are different and so there could be problems while converting them from Lua to C#. It would be helpfull, if we could retrive strings as byte arrays.
I encountered the problem, that strings, which are a byte array in Lua could not transfered to C#, saved, loaded again and transfered to Lua. The transfer to Lua doesn't work. The string is created in Lua:
kk = { 252, 255 } -- 0xFC, 0xFF
k = ""
for i = 1, 2 do
local x = ""
x = string.char(kk[i])
k = k .. x
end
This is a valid string in Lua, which I want to transfer to C# (to save/load it later). But if I now try to bring this string back to Lua, I get problems. The string isn't the same in Lua as before. Perhaps it has something to do with the problem in this thread: http://lists.ximian.com/pipermail/mono-devel-list/2006-March/017493.html.
So it would be nice to get/set a string in Lua by a byte array (ToArray, FromArray) instead of a string, so that no conversions take place.
Best regards,
Dirk
I'm considering using Lua for mod support in a game being written in Unity. There are several available options for communication between C# and Lua, and some appear to not work on many/all Mono platforms. I was wondering before I start installing this (And all the other options I'm trying out) if anyone else has tried it in Unity themselves, and on which platforms.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.