summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2EquipPtrList.h
blob: 5404425df90a64590626cdbe50771b0e0912b7af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
#include "common.h"
#include "LArray.h"

class AFX_CLASS_EXPORT T2EquipPtrList : public LArray {
public:
	T2EquipPtrList(unsigned int attribute = 0);
	virtual ~T2EquipPtrList();
	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 { return mAttribute; }

protected:
    unsigned int mAttribute;
};