30 lines
652 B
Zig
30 lines
652 B
Zig
pub var NeonObjectTable = core.EngineObjectVTable.from(@This(), "zuck.game.Editor");
|
|
|
|
allocator: std.mem.Allocator = undefined,
|
|
|
|
pub const Slack = core.SlackStruct(@This(), 8192);
|
|
|
|
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;
|