14 lines
No EOL
297 B
D
14 lines
No EOL
297 B
D
module world.world_object;
|
|
|
|
import utils.shapes;
|
|
import utils.indexedarray;
|
|
|
|
alias WorldObjectList = IndexedArray!(WorldObject, 1<<15);
|
|
|
|
class WorldObject {
|
|
public Vec2f position;
|
|
public Rectf hitbox;
|
|
|
|
abstract void update(float deltaTime);
|
|
abstract void render(float deltaTime);
|
|
} |