I personally don't know much about scripting languages, especially dynamic languages...
However, I asked many people why the logic is written using scripts. The answer is no compilation.
This can only blame DT's c ++ for being poorly designed.
Thanks to wow's success, Lua has almost become the standard of game scripts.
The original Python/Ruby/TCL suddenly fell down, and blizzard was all blamed ~
Although Lua is perfect as a scripting language
But I am not very familiar with it. I may be used to the C-language syntax.
For the C/C ++/C #/Java/JS/as class, I am very pleasing to the eye
In addition, from the beginning of the school, it seems that I have been infected with the C # virus. Although I have never had the chance to use it in large quantities, I have never forgotten it.
This also led to my idea of using WPF for engine tools.
This year, the name of unity is everywhere in front of your eyes and ears, and its concept is very good.
Its script is based on mono, and the actual effect is quite good.
This also gave me the impulse to use C # As a script.
If C # Is Not A Dynamic Language, Mono also supports JavaScript and Boo.
I was wondering if Ms. Net can be directly used for cross-platform implementation.
There is actually a CS-script implementation from Google, but it seems not so neat to embed nativec ++.
Therefore, it is still necessary to start with mono. Although it is more efficient than ms, it is also a lot of times better than Lua.
Mono compilation in windows is not smooth, because the sln files in the official compressed package are incomplete.
There is no clue about searching. It seems that everyone is doing this in Linux.
Later, I downloaded the latest code from GitHub, and finally compiled it through
Some of them. Lib is in Mono's Windows Installation version
Embedded samples is the sample program embedded in mono.
Take teste as an example. mscorlib. dll is required for running, and the path is strange. It turns out to be mono/msvc/win32_debug/lib/MONO/2.0/
How to configure it later
Before test.csdownload, you must compile it into test.exe before loading and running it.
This can be seen as the script pre-compilation. How can we directly load the text for execution? This is to be studied
P/invoke call is obviously not practical. If it can be used in this way, it would be better to use. Net directly in ms.
Another script calls the underlying method is internal call. It seems that the extern declaration must be made again in C #.
Let's see if it can be automatically generated. Otherwise, every time you make a change, the two sides have to be changed.
The C ++ script is executed through a series of Apis provided by mono, such as mono_runtime_invoke.
In addition, there is a database similar to luabind called monobind. For details, refer