aboutsummaryrefslogtreecommitdiff
path: root/primedev/vscript/languages/squirrel_re/squirrel/sqstruct.h
blob: 1e357df8a6e1452f0b5378fd4371c0b01266c583 (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
#pragma once

#include "vscript/languages/squirrel_re/include/squirrel.h"
#include "vscript/languages/squirrel_re/squirrel/sqobject.h"

struct SQStructDef : public SQCollectable
{
	SQObjectType _nameType;
	SQString* _name;
	unsigned char gap_38[16];
	SQObjectType _variableNamesType;
	SQTable* _variableNames;
	unsigned char gap_[32];
};
static_assert(sizeof(SQStructDef) == 128);

// NOTE [Fifty]: Variable sized struct
struct SQStructInstance : public SQCollectable
{
	unsigned int size;
	BYTE gap_34[4];
	SQObject data[1];
};
static_assert(sizeof(SQStructInstance) == 72);