feat(logic): introduce logic.Level

This commit is contained in:
xeon
2026-02-07 15:59:19 +03:00
parent 21dbc5f82f
commit 3be92b7b11
6 changed files with 282 additions and 44 deletions

View File

@@ -0,0 +1,36 @@
const std = @import("std");
const logic = @import("../../logic.zig");
pub const NetID = enum(u64) {
none = 0,
_,
};
pub const Handle = enum(u32) {
_,
};
net_id: NetID,
template_id: i32,
position: Vector,
rotation: Vector,
hp: f64,
extra: Extra,
pub const Extra = union(enum) {
character: Character,
};
pub const Vector = struct {
pub const zero: Vector = .{ .x = 0, .y = 0, .z = 0 };
x: f32,
y: f32,
z: f32,
};
pub const Character = struct {
level: i32,
char_index: logic.Player.CharBag.CharIndex,
// TODO: attrs, battle_mgr_info representation.
};