summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2EquipPtrList.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
commitc0c336500955a23e344651e5412c9d9d441ef4ee (patch)
tree790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2EquipPtrList.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2EquipPtrList.h27
1 files changed, 14 insertions, 13 deletions
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;
};