summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2ToolDefList.h
blob: 92b44255fa71ade83c94cf46cbaf9fdce35ed9d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once
#include "common.h"
#include "LArray.h"

class AFX_CLASS_EXPORT T2ToolDefList : public LArray {
public:
	T2ToolDefList(int inCategory);
	virtual ~T2ToolDefList();
	void AllClear();
	void Regist(T2ToolDef* inToolDef);
	void Add(T2ToolDef* inToolDef);
	unsigned int GetItemCount();
	T2ToolDef* GetItemAt(int inIndex);
	T2TenantDef* FindFloor();
	T2TenantDef* FindTenantDef(int inToolType);
	T2MoverDef* FindMoverDef(int inToolType);

    int GetCategory() { return mCategory; }
    int GetCurrentItem() { return mCurrentItem; }
    void SetCurrentItem(int inItem) { mCurrentItem = inItem; }
    int GetCurrentVariant() { return mCurrentVariant; }
    void SetCurrentVariant(int inVariant) { mCurrentVariant = inVariant; }

protected:
    int mCategory;
    int mCurrentItem;
    int mCurrentVariant;
};