Backlog/engine/core/tests/samplesubsystem.zig

25 lines
630 B
Zig

pub var NeonObjectTable: core.EngineObjectVTable = core.EngineObjectVTable.from(@This(), "testing.sampleSubsystem");
allocator: std.mem.Allocator,
scene: *anyopaque,
setPositionPtr: *const anyopaque,
pub fn create(allocator: std.mem.Allocator) !*@This() {
const self = try allocator.create(@This());
self.* = .{
.allocator = allocator,
.scene = undefined,
.setPositionPtr = undefined,
};
return self;
}
pub fn destroy(self: *@This()) void {
self.allocator.destroy(self);
}
const exampleScene = @import("exampleScene.zig");
const core = @import("core");
const std = @import("std");