# XFEExtension.SpaceEngineers.ScriptingHelper Space Engineers Scripting Helper ================================ Thank you for installing XFEExtension.SpaceEngineers.ScriptingHelper! # How to use: 1. This package has added a 'ProgramBase.cs' file to your project. 2. Your main 'Program' class should inherit from 'ProgramBase': public class Program : ProgramBase { public override void Main(string argument, UpdateType updateSource) { // Your code here } } 3. When you are ready to deploy to Space Engineers: - Copy the content of your 'Program' class. - Copy the content of 'ProgramBase' class (helper methods). - Paste them into the in-game script editor. # Features: - GetBlock(name): Get a block by name. - GetBlock(filter): Get the first block matching a filter. - GetBlocks(filter): Get a list of blocks matching a filter. Happy scripting! -------------------------------- Space Engineers 脚本助手 ================================ 感谢您安装 XFEExtension.SpaceEngineers.ScriptingHelper! # 使用方法: 1. 此包已向您的项目添加了 'ProgramBase.cs' 文件。 2. 您的主 'Program' 类应继承自 'ProgramBase': public class Program : ProgramBase { public override void Main(string argument, UpdateType updateSource) { // 您的代码写在这里 } } 3. 当您准备部署到《太空工程师》时: - 复制您的 'Program' 类里面的内容。 - 复制 'ProgramBase' 类的内容(辅助方法)。 - 将它们粘贴到游戏内的脚本编辑器中。 # 功能: - GetBlock(name): 根据名称获取方块。 - GetBlock(filter): 获取匹配过滤器的第一个方块。 - GetBlocks(filter): 获取匹配过滤器的方块列表。 祝您编程愉快!