diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
commit | c0c336500955a23e344651e5412c9d9d441ef4ee (patch) | |
tree | 790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2RequestIDArray.h | |
parent | 37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff) | |
download | t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip |
first pass of T2DLL
Diffstat (limited to 'src/T2DLL/T2RequestIDArray.h')
-rw-r--r-- | src/T2DLL/T2RequestIDArray.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/src/T2DLL/T2RequestIDArray.h b/src/T2DLL/T2RequestIDArray.h index 3351078..33d8533 100644 --- a/src/T2DLL/T2RequestIDArray.h +++ b/src/T2DLL/T2RequestIDArray.h @@ -1,7 +1,13 @@ #pragma once #include "common.h" +#include "LArray.h" -class T2RequestIDArray { +enum EReqIDArrayPos { + ReqIDArrayPos_0 = 0, + ReqIDArrayPos_1 = 1, +}; + +class AFX_EXT_CLASS T2RequestIDArray : private LArray { public: T2RequestIDArray(); virtual ~T2RequestIDArray(); @@ -11,18 +17,16 @@ public: void Expand(EReqIDArrayPos, int); void SetRequestIDAt(int, ERequestUpDown, unsigned int); unsigned int GetRequestIDAt(int, ERequestUpDown) const; -private: - int GetIndex(int, ERequestUpDown) const; -public: - int IsStopPosition(int) const; + BOOL IsStopPosition(int) const; void RemoveRequest(T2TowerDoc*, int, ERequestUpDown); void Union(T2RequestIDArray*); void MoverIDChanged(T2FloorInfo*, unsigned int); void StopRemoved(T2TowerDoc*, int); void ModuleRemoved(T2TowerDoc*, unsigned int); + static T2RequestIDArray* ReadReqIDArray(T2Archive&); static void WriteReqIDArray(T2RequestIDArray*, T2Archive&); - T2RequestIDArray(const T2RequestIDArray&) {} - T2RequestIDArray& operator=(const T2RequestIDArray&) {} +private: + int GetIndex(int, ERequestUpDown) const; }; |