Backlog/depot/zuck/games/ZuckGame.zig

30 lines
650 B
Zig

pub var NeonObjectTable = core.EngineObjectVTable.from(@This(), "zuck.game.Root");
allocator: std.mem.Allocator = undefined,
pub const Slack = core.SlackStruct(@This(), 1024);
pub fn create(allocator: std.mem.Allocator) !*@This() {
const self = try Slack.create(allocator);
self.* = .{
.allocator = allocator,
};
return self;
}
pub fn tick(self: *@This(), dt: f64) void {
_ = self;
_ = dt;
}
pub fn destroy(self: *@This()) void {
self.allocator.destroy(Slack.fromPtr(self));
}
const backlog = @import("backlog");
const std = @import("std");
const extras = @import("gameExtras");
const core = backlog.core;