找回密码
 立即注册
搜索

[编辑器/功能拓展] Roslyn C# - Runtime Compiler 1.6.4运行时代码编译

[复制链接]
136 |0
发表于 2023-3-14 11:18:28 | 显示全部楼层 |阅读模式



Roslyn C# allows runtime loading of assemblies and C# scripts using the Roslyn compiler making it easy to add modding support or in-game programming to your project. In addition, Roslyn C# also includes code security verification that allows you to specify a number of security restrictions that loaded code must adhere to including illegal namespaces and types. This makes it much safer to load 3rd party code from unknown sources.

Includes a small programming based game where the objective is to navigate a mouse out of a maze by writing code that performs the direction decision making.

Features
-Compile and run C# scripts at runtime
-Leverage the latest C# language features using the Roslyn C# compiler
-Fast execution. Once compiled, external scripts will run as fast as game scripts
-Allows modding support to be added easily
-Code security validation means that unsafe code can be identified and discarded
-Code security generates a detailed report upon failure containing information about illegal types used and every usage occurrence in the external code
-Simple and easy to use API for assembly, type and instance reflection
-Support for non-concrete communication using script proxies
-Automatic type construction using correct method (AddComponent, CreateInstance, new)
-Cached member tables for quick reflection
-All scripts and example are organised into namespaces to avoid type name clashes
-Fully commented partial C# source code included
-Comprehensive .chm documentation of the API for quick and easy reference

Platforms
Support for PC, Mac and Linux platforms.

Roslyn C# may work on other platforms without issue however we will only offer support for the officially supported platforms.

Android
Android is not officially supported however, many users have had success getting the asset to run on Android by following these steps



Roslyn c#允许运行时加载程序集和使用Roslyn编译器的c#脚本,使它很容易添加modding支持或游戏内编程到您的项目。此外,Roslyn c#还包括代码安全验证,允许您指定装载的代码必须遵守的许多安全限制,包括非法的名称空间和类型。这使得从未知来源加载第三方代码更加安全。

包括一个基于编程的小游戏,其目标是通过编写执行方向决策的代码来导航鼠标走出迷宫。

特性
-在运行时编译和运行c#脚本
-使用Roslyn c#编译器利用最新的c#语言特性
摄入快速执行。一旦编译完成,外部脚本将和游戏脚本一样快
-允许modding支持容易添加
代码安全验证意味着可以识别和丢弃不安全的代码
-代码安全性在失败时生成详细的报告,其中包含外部代码中使用的非法类型和每次使用事件的信息
简单易用的API用于程序集,类型和实例反射
-支持使用脚本代理的非具体通信
使用正确的方法自动构造类型(AddComponent, CreateInstance, new)
-缓存成员表,用于快速反射
-所有脚本和示例都被组织到名称空间中,以避免类型名称冲突
-包括完整注释的部分c#源代码
-全面的。chm文档的API,方便快捷的参考

平台
支持PC, Mac和Linux平台。

Roslyn c#可以在其他平台上正常工作,但是我们只对官方支持的平台提供支持。

安卓
然而,Android并不受官方支持,许多用户已经通过以下步骤成功地让资产在Android上运行



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表