This commit is contained in:
Tassilo Schweyer 2026-06-11 11:28:49 +02:00
parent fb77d13eb5
commit 56e19e8039
30 changed files with 485 additions and 37 deletions

View file

@ -20,16 +20,7 @@ package de.welterde.em;
*
* @author welterde
*/
public abstract class Entity {
protected final EntityStorage ctx;
protected final int id;
public Entity(EntityStorage ctx, int id) {
this.id = id;
this.ctx = ctx;
}
public int getEntityId() {
return this.id;
}
public interface Entity {
public int getEntityId();
public void initEntity(EntityStorage ctx, int id);
}