forked from Phobos-developers/YRpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IsometricTileClass.h
51 lines (38 loc) · 1.48 KB
/
IsometricTileClass.h
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
#pragma once
#include <ObjectClass.h>
//forward declarations
class IsometricTileTypeClass;
class NOVTABLE IsometricTileClass : public ObjectClass
{
public:
static const AbstractType AbsID = AbstractType::Isotile;
//Array
static constexpr constant_ptr<DynamicVectorClass<IsometricTileClass*>, 0x87F750u> Array{};
//IPersist
virtual HRESULT __stdcall GetClassID(CLSID* pClassID) override R0;
virtual HRESULT __stdcall Load(IStream* pStm) override R0;
virtual HRESULT __stdcall Save(IStream* pStm, BOOL fClearDirty) override R0;
//AbstractClass
virtual AbstractType WhatAmI() const override RT(AbstractType);
virtual int Size() const override R0;
//ObjectClass
virtual ObjectTypeClass* GetType() const override R0;
virtual bool Limbo() override R0;
virtual bool Unlimbo(const CoordStruct& Crd, DirType dFaceDir) override R0;
virtual void Draw(Point2D* pLocation, RectangleStruct* pBounds) const override RX;
//Destructor
virtual ~IsometricTileClass() RX;
//Constructor
IsometricTileClass(int idxType, CellStruct const& location) noexcept
: IsometricTileClass(noinit_t())
{ JMP_THIS(0x543780); }
protected:
explicit __forceinline IsometricTileClass(noinit_t) noexcept
: ObjectClass(noinit_t())
{ }
//===========================================================================
//===== Properties ==========================================================
//===========================================================================
public:
IsometricTileTypeClass* Type;
};