From c0c336500955a23e344651e5412c9d9d441ef4ee Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 28 Jun 2023 22:22:32 +0100 Subject: first pass of T2DLL --- src/T2DLL/T2UnitInfo.h | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'src/T2DLL/T2UnitInfo.h') diff --git a/src/T2DLL/T2UnitInfo.h b/src/T2DLL/T2UnitInfo.h index 2c0835e..11242f0 100644 --- a/src/T2DLL/T2UnitInfo.h +++ b/src/T2DLL/T2UnitInfo.h @@ -1,21 +1,24 @@ #pragma once #include "common.h" -class T2UnitInfo { +class AFX_EXT_CLASS T2UnitInfo { public: T2UnitInfo(); ~T2UnitInfo(); - int IsBuildable(); - int IsMoverID(unsigned int); - int IsRequestID(unsigned int); + BOOL IsBuildable(); + BOOL IsMoverID(unsigned int tenantID); + BOOL IsRequestID(unsigned int moverID); unsigned int GetTenantID(); unsigned int GetMoverID(); unsigned int GetRequestID(); - void FillTenantID(unsigned int); - void FillMoverID(unsigned int); - void InitMask(CResFile&); - void Read(T2Archive&, T2TowerDoc*); - void Write(T2Archive&); + void FillTenantID(unsigned int tenantID); + void FillMoverID(unsigned int moverID); + void InitMask(CResFile& resFile); + void Read(T2Archive& archive, T2TowerDoc* towerDoc); + void Write(T2Archive& archive); - T2UnitInfo& operator=(const T2UnitInfo&) {} +protected: + // encodes buildable flag and a mover OR request ID + unsigned int mVarA; + unsigned int mVarB; }; -- cgit v1.2.3