fledge_ecs_annotations
Annotations for the Fledge ECS framework. Used with fledge_ecs_generator for code generation.
Installation
dependencies:
fledge_ecs_annotations: ^0.2.1
Quick Start
import 'package:fledge_ecs_annotations/fledge_ecs_annotations.dart';
@component
class Position {
double x;
double y;
}
@system
void moveEntities(Query<(Position, Velocity)> query, Res<WallTime> time) {
for (final (pos, vel) in query.iter()) {
pos.x += vel.x * time.value.delta;
pos.y += vel.y * time.value.delta;
}
}
Documentation
See the Fledge documentation site for guides, API reference, and advanced usage.
License
Apache 2.0 - See LICENSE for details.
Libraries
- fledge_ecs_annotations
- Annotations for the Fledge ECS framework.