Move complex property below ctor

This commit is contained in:
smoogipoo 2019-09-09 19:00:42 +09:00
parent 55afcc1e04
commit 195f101799
1 changed files with 15 additions and 15 deletions

View File

@ -24,21 +24,6 @@ public class CursorTrail : Drawable, IRequireHighFrequencyMousePosition
{
private const int max_sprites = 2048;
private Texture texture = Texture.WhitePixel;
public Texture Texture
{
get => texture;
set
{
if (texture == value)
return;
texture = value;
Invalidate(Invalidation.DrawNode);
}
}
private readonly TrailPart[] parts = new TrailPart[max_sprites];
private int currentIndex;
private IShader shader;
@ -72,6 +57,21 @@ protected override void LoadComplete()
resetTime();
}
private Texture texture = Texture.WhitePixel;
public Texture Texture
{
get => texture;
set
{
if (texture == value)
return;
texture = value;
Invalidate(Invalidation.DrawNode);
}
}
public override bool IsPresent => true;
protected override void Update()