28 lines
524 B
C#
28 lines
524 B
C#
|
using Godot;
|
||
|
using System.Reflection;
|
||
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace Rokojori
|
||
|
{
|
||
|
[Tool]
|
||
|
[GlobalClass]
|
||
|
public partial class IntPropertyName : ShaderPropertyName
|
||
|
{
|
||
|
public void Set( Material material, int value )
|
||
|
{
|
||
|
_Set( material, value );
|
||
|
}
|
||
|
|
||
|
public int Get( Material material )
|
||
|
{
|
||
|
return _Get( material, 0 );
|
||
|
}
|
||
|
|
||
|
public static IntPropertyName Create( string name )
|
||
|
{
|
||
|
var p = new IntPropertyName();
|
||
|
p.propertyName = name;
|
||
|
return p;
|
||
|
}
|
||
|
}
|
||
|
}
|