summaryrefslogtreecommitdiff
path: root/src/ecs/components.zig
blob: 5c35cbf7ef5601eefc2ab1bcd3a18d4d5c12c5ff (plain)
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;
};