17 lines
439 B
C#
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
|
|
}
|
|
}
|