| 1 | /* CubeGrid_def.h |
| 2 | * |
| 3 | * Copyright (C) 2023 Paul Boersma |
| 4 | * |
| 5 | * This code is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or (at |
| 8 | * your option) any later version. |
| 9 | * |
| 10 | * This code is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 | * See the GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | |
| 20 | #define ooSTRUCT CubePoint |
| 21 | oo_DEFINE_CLASS (CubePoint, Function) |
| 22 | |
| 23 | oo_DOUBLE (red) |
| 24 | oo_DOUBLE (green) |
| 25 | oo_DOUBLE (blue) |
| 26 | |
| 27 | oo_END_CLASS (CubePoint) |
| 28 | #undef ooSTRUCT |
| 29 | |
| 30 | |
| 31 | #define ooSTRUCT CubeTier |
| 32 | oo_DEFINE_CLASS (CubeTier, Function) |
| 33 | |
| 34 | oo_COLLECTION_OF (SortedSetOfDoubleOf, points, CubePoint, 0) |
| 35 | |
| 36 | oo_END_CLASS (CubeTier) |
| 37 | #undef ooSTRUCT |
| 38 | |
| 39 | |
| 40 | #define ooSTRUCT CubeGrid |
| 41 | oo_DEFINE_CLASS (CubeGrid, Function) |
| 42 | |
| 43 | oo_STRING (redName) |
| 44 | oo_STRING (greenName) |
| 45 | oo_STRING (blueName) |
| 46 | oo_COLLECTION_OF (OrderedOf, tiers, CubeTier, 0) |
| 47 | |
| 48 | oo_END_CLASS (CubeGrid) |
| 49 | #undef ooSTRUCT |
| 50 | |
| 51 | |
| 52 | /* End of file CubeGrid_def.h */ |