resource management

This commit is contained in:
2025-07-07 10:05:23 -05:00
parent 5fabd1a8ab
commit 3d995671cd
7 changed files with 77 additions and 82 deletions
+3 -2
View File
@@ -1,7 +1,7 @@
pub mod id;
pub mod resources;
pub mod tick;
pub mod velocity;
pub mod resources;
use std::{
any::{type_name, Any},
@@ -12,10 +12,11 @@ use std::{
use crate::{
render_scope::RenderScope,
widget::{Component, Widget},
Screen,
};
pub trait Extension {
fn init(&mut self, _widgets: &Vec<Arc<Widget>>) {}
fn init(&mut self, _screen: Arc<Screen>) {}
fn render_widget(&mut self, _scope: &mut RenderScope, _widget: &Arc<Widget>) {}
}