30 lines
479 B
C#
30 lines
479 B
C#
|
|
using Godot;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
|
||
|
|
namespace Rokojori;
|
||
|
|
|
||
|
|
[Tool]
|
||
|
|
[GlobalClass ]
|
||
|
|
public partial class LinePreset:Resource
|
||
|
|
{
|
||
|
|
[Export]
|
||
|
|
public LinePointDataGenerator pointGenerator;
|
||
|
|
|
||
|
|
[Export]
|
||
|
|
public LineMeshGenerator meshGenerator;
|
||
|
|
|
||
|
|
[Export]
|
||
|
|
public LineMaterialPreset materialPreset;
|
||
|
|
|
||
|
|
public void Update( LineVFX lineVFX, double delta )
|
||
|
|
{
|
||
|
|
if ( pointGenerator == null )
|
||
|
|
{
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
pointGenerator.Update( lineVFX, delta );
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|