Files
FOU/Scripts/Elements/Solid.cs
rogo 71db6513f2 improved handling of colors
improved debug colors
refactoring
2024-12-21 23:04:01 +01:00

17 lines
439 B
C#

using Godot;
namespace FOU.Scripts.Elements;
public abstract class Solid : Element {
protected Solid(int x, int y, ref Chunk chunk) : base(x, y, chunk) { }
public override bool Update() {
if (!base.Update()) return false;
if (lastMove + STEPS_UNTIL_INACTIVE < Engine.GetFramesDrawn()) Active = false;
Tick();
return true; // not necessarily end, subclasses could do some more things
}
}