proper 3d projection

This commit is contained in:
Chance 2025-03-22 18:19:01 -04:00 committed by BitSyndicate
parent 9ee63d3765
commit 6b3f83ad8b
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 443E4198D6BBA6DE
14 changed files with 3761 additions and 209 deletions
engine/src/core/ecs

View file

@ -1,9 +1,7 @@
pub trait Component: Sized + 'static {
fn update(&mut self, delta_time: f32);
fn serialize(&self) -> Vec<u8>;
fn deserialize(data: &[u8;6]) -> Self;
fn deserialize(data: &[u8; 6]) -> Self;
}
pub trait Entity: Sized {
@ -11,5 +9,5 @@ pub trait Entity: Sized {
fn remove_component<C: Component>(&mut self);
fn get_component<C: Component>(&self) -> Option<&C>;
fn serialize(&self) -> Vec<u8>;
fn deserialize(data: &[u8;6]) -> Self;
}
fn deserialize(data: &[u8; 6]) -> Self;
}