88e367a406
This base implementation is still very barebones but it defines the path for how exporting will work (at least when embedding the .NET runtime). Many manual steps are still needed, which should be automatized in the future. For example, in addition to the API assemblies, now you also need to copy the GodotPlugins assembly to each game project.
36 lines
714 B
C#
36 lines
714 B
C#
using System;
|
|
|
|
namespace Godot.SourceGenerators.Sample
|
|
{
|
|
public partial class ScriptBoilerplate : Node
|
|
{
|
|
private NodePath _nodePath;
|
|
private int _velocity;
|
|
|
|
public override void _Process(float delta)
|
|
{
|
|
_ = delta;
|
|
|
|
base._Process(delta);
|
|
}
|
|
|
|
public int Bazz(StringName name)
|
|
{
|
|
_ = name;
|
|
return 1;
|
|
}
|
|
|
|
public void IgnoreThisMethodWithByRefParams(ref int a)
|
|
{
|
|
_ = a;
|
|
}
|
|
}
|
|
|
|
partial struct OuterClass
|
|
{
|
|
public partial class NesterClass : RefCounted
|
|
{
|
|
public override object _Get(StringName property) => null;
|
|
}
|
|
}
|
|
}
|