This repository has been archived on 2024-11-14. You can view files and clone it, but cannot push or open issues or pull requests.
game-project/source/world/world_object.d
Ludovic 'Archivist' Lagouardette ce09bd79e9 Added a world state object
2023-10-02 15:11:24 +02:00

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);
}