XFEExtension.SpaceEngineers.ScriptingHelper 1.0.3

dotnet add package XFEExtension.SpaceEngineers.ScriptingHelper --version 1.0.3
                    
NuGet\Install-Package XFEExtension.SpaceEngineers.ScriptingHelper -Version 1.0.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="XFEExtension.SpaceEngineers.ScriptingHelper" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="XFEExtension.SpaceEngineers.ScriptingHelper" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="XFEExtension.SpaceEngineers.ScriptingHelper" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add XFEExtension.SpaceEngineers.ScriptingHelper --version 1.0.3
                    
#r "nuget: XFEExtension.SpaceEngineers.ScriptingHelper, 1.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package XFEExtension.SpaceEngineers.ScriptingHelper@1.0.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=XFEExtension.SpaceEngineers.ScriptingHelper&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=XFEExtension.SpaceEngineers.ScriptingHelper&version=1.0.3
                    
Install as a Cake Tool

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 : MyGridPrgram, IProgramBase
    {
        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<T>(name): Get a block by name.
  • GetBlock<T>(filter): Get the first block matching a filter.
  • GetBlocks<T>(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 : MyGridPrgram, IProgramBase
    {
        public override void Main(string argument, UpdateType updateSource)
        {
            // 您的代码写在这里
        }
    }
    
  3. 当您准备部署到《太空工程师》时:

    • 复制您的 'Program' 类里面的内容。
    • 复制 'ProgramBase' 类的内容(辅助方法)。
    • 将它们粘贴到游戏内的脚本编辑器中。

功能:

  • GetBlock<T>(name): 根据名称获取方块。
  • GetBlock<T>(filter): 获取匹配过滤器的第一个方块。
  • GetBlocks<T>(filter): 获取匹配过滤器的方块列表。

祝您编程愉快!

Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.8

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.3 84 2/15/2026
1.0.2 86 2/15/2026
1.0.1 81 2/15/2026
1.0.0 86 2/15/2026