Release 0.1.0

This commit is contained in:
xeon
2026-02-02 20:53:22 +03:00
commit 25660300dd
152 changed files with 882089 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
const Base = @This();
const common = @import("common");
const mem = common.mem;
pub const max_role_name_length: usize = 15;
pub const init: Base = .{
.create_ts = 0,
.role_name = .constant("xeondev"),
.role_id = 1,
.level = .first,
.exp = 0,
.create_ts_display = 0,
.gender = .default,
};
pub const Gender = enum(u8) {
pub const default: Gender = .male;
invalid = 0,
male = 1,
female = 2,
};
pub const Level = enum(u8) {
first = 1,
last = 60,
_,
};
create_ts: i64,
role_name: mem.LimitedString(max_role_name_length),
role_id: u64,
level: Level,
exp: u32,
create_ts_display: i64,
gender: Gender,