hysilens-sr/gameserver/src/main.zig
HuLiNap ca7eec0745 Update to v3:
- better respond time
- import BuffInfoConfig.json
- implemented custom mode for challenge mode to
sellect older MoC/PF/AS
2025-07-15 15:46:35 +07:00

21 lines
599 B
Zig

const std = @import("std");
const builtin = @import("builtin");
const network = @import("network.zig");
const Cache = @import("../src/manager/scene_mgr.zig");
pub const std_options = .{
.log_level = switch (builtin.mode) {
.Debug => .debug,
else => .info,
},
};
pub fn main() !void {
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
defer _ = gpa.deinit();
const allocator = gpa.allocator();
try Cache.initGameGlobals(allocator);
defer Cache.deinitGameGlobals();
try network.listen();
std.log.info("Server listening for connections.", .{});
}