-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathBuildingTypeClass.cs
33 lines (27 loc) · 963 Bytes
/
BuildingTypeClass.cs
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
30
31
32
33
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace PatcherYRpp
{
[StructLayout(LayoutKind.Explicit, Size = 6040)]
public struct BuildingTypeClass
{
public unsafe short GetFoundationWidth()
{
var func = (delegate* unmanaged[Thiscall]<ref BuildingTypeClass, short>)0x45EC90;
return func(ref this);
}
public unsafe short GetFoundationHeight(bool bIncludeBib)
{
var func = (delegate* unmanaged[Thiscall]<ref BuildingTypeClass, Bool, short>)0x45ECA0;
return func(ref this, bIncludeBib);
}
[FieldOffset(0)] public TechnoTypeClass Base;
[FieldOffset(0)] public ObjectTypeClass BaseObjectType;
[FieldOffset(0)] public AbstractTypeClass BaseAbstractType;
[FieldOffset(5891)] public Bool PlaceAnywhere;
}
}