18 lines
381 B
C#
18 lines
381 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) {
|
|
MarkForUpdate();
|
|
}
|
|
|
|
public override bool Update() {
|
|
if (!base.Update()) return false;
|
|
|
|
Tick();
|
|
|
|
return true; // not necessarily end, subclasses could do some more things
|
|
}
|
|
}
|