add documentation for Scene

This commit is contained in:
Nick Fisher
2025-06-04 17:44:24 +08:00
parent ab4743da90
commit fc4686b20f

View File

@@ -1,7 +1,18 @@
import 'package:thermion_dart/thermion_dart.dart';
abstract class Scene {
/// Adds all renderable entities in [asset] to this scene.
///
///
Future add(covariant ThermionAsset asset);
/// Adds [entity] to this scene (which is assumed to have a Renderable
/// component).
///
Future addEntity(ThermionEntity entity);
/// Removes all renderable entities in [asset] from this scene.
///
Future remove(covariant ThermionAsset asset);
}