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/T2EquipPtrList.h | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'src/T2DLL/T2EquipPtrList.h') diff --git a/src/T2DLL/T2EquipPtrList.h b/src/T2DLL/T2EquipPtrList.h index 01241b0..2c1edc9 100644 --- a/src/T2DLL/T2EquipPtrList.h +++ b/src/T2DLL/T2EquipPtrList.h @@ -1,20 +1,21 @@ #pragma once #include "common.h" +#include "LArray.h" -class T2EquipPtrList { +class AFX_EXT_CLASS T2EquipPtrList : public LArray { public: - T2EquipPtrList(unsigned int); + T2EquipPtrList(unsigned int attribute = 0); virtual ~T2EquipPtrList(); - void AddItem(T2Equip*); - void RemoveItem(T2Equip*); - void RemoveItem(int); - int GetIndex(T2Equip*); - int GetIndex(unsigned int); - T2Equip* GetItem(int); - void SetRelatedTenantID(unsigned int); + void AddItem(T2Equip* equip); + void RemoveItem(T2Equip* equip); + void RemoveItem(int index); + int GetIndex(T2Equip* equip); + int GetIndex(unsigned int equipID); + T2Equip* GetItem(int index); + void SetRelatedTenantID(unsigned int id); - unsigned int GetAttribute() const {} - T2EquipPtrList(const T2EquipPtrList&) {} - T2EquipPtrList& operator=(const T2EquipPtrList&) {} - void `default constructor closure'() {} + unsigned int GetAttribute() const { return mAttribute; } + +protected: + unsigned int mAttribute; }; -- cgit v1.2.3