Richard Boegli's CnC_Generals_Zero_Hour Fork
WIP
This is documentation of Richard Boegil's Zero Hour Fork
Loading...
Searching...
No Matches
namedsel.h
Go to the documentation of this file.
1
/*
2
** Command & Conquer Generals Zero Hour(tm)
3
** Copyright 2025 Electronic Arts Inc.
4
**
5
** This program 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 3 of the License, or
8
** (at your option) any later version.
9
**
10
** This program is distributed in the hope that it will be useful,
11
** but WITHOUT ANY WARRANTY; without even the implied warranty of
12
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
** 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 program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
/* $Header: /Commando/Code/Tools/max2w3d/namedsel.h 4 10/28/97 6:08p Greg_h $ */
20
/***********************************************************************************************
21
*** Confidential - Westwood Studios ***
22
***********************************************************************************************
23
* *
24
* Project Name : Commando Tools - WWSkin *
25
* *
26
* $Archive:: /Commando/Code/Tools/max2w3d/namedsel.h $*
27
* *
28
* $Author:: Greg_h $*
29
* *
30
* $Modtime:: 10/21/97 2:05p $*
31
* *
32
* $Revision:: 4 $*
33
* *
34
*---------------------------------------------------------------------------------------------*
35
* Functions: *
36
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
37
38
#ifndef NAMEDSEL_H
39
#define NAMEDSEL_H
40
41
42
#include "Max.h"
43
44
/*
45
** This is a class for containing bit arrays for
46
** the named selection sets. I stole it from
47
** the Edit Mesh modifier code...
48
** It is basically a dynamically sized array
49
** of bitarrays.
50
*/
51
class
NamedSelSetList
52
{
53
public
:
54
Tab<BitArray*>
Sets
;
55
Tab<TSTR*>
Names
;
56
57
~NamedSelSetList
();
58
59
BitArray &
operator[]
(
int
i) {
return
*
Sets
[i]; }
60
int
Count
() {
return
Sets
.Count(); }
61
62
int
Find_Set
(TSTR & setname);
63
void
Delete_Set
(
int
i);
64
void
Delete_Set
(TSTR & setname);
65
void
Reset
(
void
);
66
void
Append_Set
(BitArray & nset,TSTR & setname);
67
68
IOResult
Load
(ILoad * iload);
69
IOResult
Save
(ISave * isave);
70
IOResult
Load_Set
(ILoad * iload);
71
72
void
Set_Size
(
int
size);
73
NamedSelSetList
&
operator=
(
NamedSelSetList
& from);
74
75
enum
{
76
NAMED_SEL_SET_CHUNK
= 0x0021,
77
NAMED_SEL_BITS_CHUNK
= 0x0022,
78
NAMED_SEL_NAME_CHUNK
= 0x0023
79
};
80
};
81
82
83
#endif
/*NAMEDSEL_H*/
NamedSelSetList
Definition
namedsel.h:52
NamedSelSetList::Reset
void Reset(void)
Definition
namedsel.cpp:80
NamedSelSetList::Names
Tab< TSTR * > Names
Definition
namedsel.h:55
NamedSelSetList::Load_Set
IOResult Load_Set(ILoad *iload)
Definition
namedsel.cpp:167
NamedSelSetList::Save
IOResult Save(ISave *isave)
Definition
namedsel.cpp:121
NamedSelSetList::Find_Set
int Find_Set(TSTR &setname)
Definition
namedsel.cpp:110
NamedSelSetList::Sets
Tab< BitArray * > Sets
Definition
namedsel.h:54
NamedSelSetList::operator[]
BitArray & operator[](int i)
Definition
namedsel.h:59
NamedSelSetList::Delete_Set
void Delete_Set(int i)
Definition
namedsel.cpp:63
NamedSelSetList::operator=
NamedSelSetList & operator=(NamedSelSetList &from)
Definition
namedsel.cpp:94
NamedSelSetList::Load
IOResult Load(ILoad *iload)
Definition
namedsel.cpp:144
NamedSelSetList::~NamedSelSetList
~NamedSelSetList()
Definition
namedsel.cpp:42
NamedSelSetList::Append_Set
void Append_Set(BitArray &nset, TSTR &setname)
Definition
namedsel.cpp:52
NamedSelSetList::Set_Size
void Set_Size(int size)
Definition
namedsel.cpp:87
NamedSelSetList::Count
int Count()
Definition
namedsel.h:60
NamedSelSetList::NAMED_SEL_NAME_CHUNK
@ NAMED_SEL_NAME_CHUNK
Definition
namedsel.h:78
NamedSelSetList::NAMED_SEL_SET_CHUNK
@ NAMED_SEL_SET_CHUNK
Definition
namedsel.h:76
NamedSelSetList::NAMED_SEL_BITS_CHUNK
@ NAMED_SEL_BITS_CHUNK
Definition
namedsel.h:77
Code
Tools
WW3D
max2w3d
namedsel.h
Generated by
1.13.2