summaryrefslogtreecommitdiffstats
path: root/src/entities/Building.h
blob: 89d0a460d786365b90c5747c0d998e49f3dacbec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include "Entity.h"

class CBuilding : public CEntity
{
public:
	CBuilding(void) {
		m_type = ENTITY_TYPE_BUILDING;
		bUsesCollision = true;
	}
	static void *operator new(size_t);
	static void operator delete(void*, size_t);

	void ReplaceWithNewModel(int32 id);

	virtual bool GetIsATreadable(void) { return false; }

	CBuilding *ctor(void) { return ::new (this) CBuilding(); }
	void dtor(void) { this->CBuilding::~CBuilding(); }
};
static_assert(sizeof(CBuilding) == 0x64, "CBuilding: error");