| 1 | /* |
| 2 | * LegacyClonk |
| 3 | * |
| 4 | * Copyright (c) 1998-2000, Matthes Bender (RedWolf Design) |
| 5 | * Copyright (c) 2017-2019, The LegacyClonk Team and contributors |
| 6 | * |
| 7 | * Distributed under the terms of the ISC license; see accompanying file |
| 8 | * "COPYING" for details. |
| 9 | * |
| 10 | * "Clonk" is a registered trademark of Matthes Bender, used with permission. |
| 11 | * See accompanying file "TRADEMARK" for details. |
| 12 | * |
| 13 | * To redistribute this file separately, substitute the full license texts |
| 14 | * for the above references. |
| 15 | */ |
| 16 | |
| 17 | /* Core component of a folder */ |
| 18 | |
| 19 | #pragma once |
| 20 | |
| 21 | #include "C4ForwardDeclarations.h" |
| 22 | |
| 23 | #include <cstdint> |
| 24 | |
| 25 | const int C4MaxFolderSort = 4096; |
| 26 | |
| 27 | class C4FolderHead |
| 28 | { |
| 29 | public: |
| 30 | int32_t Index; // Folder index in scenario selection dialog |
| 31 | char Sort[C4MaxFolderSort + 1]; // Folder-defined group sort list (to be used for folder maps) |
| 32 | |
| 33 | public: |
| 34 | void Default(); |
| 35 | void CompileFunc(StdCompiler *pComp); |
| 36 | }; |
| 37 | |
| 38 | class C4Folder |
| 39 | { |
| 40 | public: |
| 41 | C4Folder(); |
| 42 | |
| 43 | public: |
| 44 | C4FolderHead Head; |
| 45 | |
| 46 | public: |
| 47 | void Default(); |
| 48 | void CompileFunc(StdCompiler *pComp); |
| 49 | }; |
| 50 | |