aboutsummaryrefslogtreecommitdiff
path: root/src/squirrel.zig
blob: dd369c7f88b846f2f4b830388a559eca412652e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const std = @import("std");
const windows = std.os.windows;

const Class = @import("class.zig").Class;

pub const ScriptContext = enum(c_int) {
    SC_SERVER,
    SC_CLIENT,
    SC_UI,
};

pub const SQObject = extern struct {
    type: c_int,
    structNumber: c_int,
    value: *void,
};

pub const CSquirrelVM = Class(.{}, .{
    .unknown = .{ .type = void, .virtual = true },

    .sqvm = .{ .type = void },
    .gap_10 = .{ .type = [8]u8 },
    .unkObj = .{ .type = SQObject },
    .gap_30 = .{ .type = [12]u8 },
    .context = .{ .type = ScriptContext },
    .gap_40 = .{ .type = [648]u8 },
    .formatString = .{ .type = *const fn (i64, [*]const u8, ...) callconv(.C) [*]u8 },
    .gap_2D0 = .{ .type = [24]u8 },
});