blob: 18d7677774e29ccaa2dbe5a3406267d19e2e85ad (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#pragma once
#include <libultraship.h>
#include "Object.h"
#include "engine/registry/RegisterContent.h"
#include "engine/World.h"
extern "C" {
#include "common_structs.h"
}
class OSnowman : public OObject {
public:
// This is simply a helper function to keep Spawning code clean
static OSnowman* Spawn(FVector pos) {
SpawnParams params = {
.Name = "mk:snowman",
.Location = FVector(pos.x, pos.y, pos.z),
};
return dynamic_cast<OSnowman*>(AddObjectToWorld<OSnowman>(params));
}
explicit OSnowman(const SpawnParams& params);
~OSnowman() {
_count--;
}
static size_t GetCount() {
return _count;
}
virtual void Tick() override;
virtual void Draw(s32 cameraId) override;
virtual void Translate(FVector pos) override;
void DrawHead(s32);
void DrawBody(s32);
void func_80083868(s32);
void func_80083948(s32);
void func_80083A94(s32);
void func_80083B0C(s32);
void func_80083C04(s32);
void func_80083BE4(s32);
void func_800836F0(Vec3f);
bool func_80073D0C(s32 objectIndex, s16* arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6);
void func_80083538(s32 objectIndex, Vec3f arg1, s32 arg2, s32 arg3);
void func_8008379C(s32 objectIndex);
private:
FVector Pos;
static size_t _count;
size_t _idx;
s32 _headIndex;
s32 _bodyIndex;
};
|