- better respond time - import BuffInfoConfig.json - implemented custom mode for challenge mode to sellect older MoC/PF/AS
21 lines
599 B
Zig
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.", .{});
|
|
}
|