1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
const std = @import("std"); const Allocator = std.mem.Allocator; const COMPONENT_NUMBER = 2; pub const Position = packed struct { x: f32, y: f32, z: f32, pub const id: usize = 0; }; pub const Speed = packed struct { speed: f32, pub const id: usize = 1; };