26 lines
391 B
C#
26 lines
391 B
C#
|
using Godot;
|
||
|
using System.Reflection;
|
||
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace Rokojori
|
||
|
{
|
||
|
[Tool]
|
||
|
[GlobalClass]
|
||
|
public partial class IntPropertyTransfer:Resource
|
||
|
{
|
||
|
[Export]
|
||
|
public IntPropertyName from;
|
||
|
|
||
|
[Export]
|
||
|
public IntPropertyName to;
|
||
|
|
||
|
public void Transfer( Material a, Material b )
|
||
|
{
|
||
|
var v = from.Get( a );
|
||
|
to.Set( b, v );
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|