@@ -21,5 +21,10 @@ abstract class Entity<T> {
|
||||
this.lastActionTime = 0,
|
||||
});
|
||||
|
||||
set position(Coordinate2D pos) {
|
||||
x = pos.x;
|
||||
y = pos.y;
|
||||
}
|
||||
|
||||
Coordinate2D get position => Coordinate2D(x, y);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user