diff options
| author | Mica White <botahamec@outlook.com> | 2024-08-15 20:23:26 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2024-08-25 19:24:37 -0400 |
| commit | 509e5ce1e17417a70b9bcce8bc6e33c05106811d (patch) | |
| tree | 5b1fe60a65b5f42a90023ead03c32336033afa1f /scripts/src/vtable.rs | |
| parent | db9aa9f1bf49e8bede384b9ceb1e1fb82b522799 (diff) | |
Start profiling
Diffstat (limited to 'scripts/src/vtable.rs')
| -rw-r--r-- | scripts/src/vtable.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/src/vtable.rs b/scripts/src/vtable.rs index 0fbb324..33b71ab 100644 --- a/scripts/src/vtable.rs +++ b/scripts/src/vtable.rs @@ -1,10 +1,10 @@ -/// A trait for scripts -pub trait ScriptTable: Send + Sync { - /// This is called whenever the script is enabled - fn begin(&mut self); - - /// This is called every frame - fn update(&mut self); -} - -pub type VTableScript = &'static mut dyn ScriptTable; +/// A trait for scripts
+pub trait ScriptTable: Send + Sync {
+ /// This is called whenever the script is enabled
+ fn begin(&mut self);
+
+ /// This is called every frame
+ fn update(&mut self);
+}
+
+pub type VTableScript = &'static mut dyn ScriptTable;
|
