Richard Boegli's CnC_Generals_Zero_Hour Fork
WIP
This is documentation of Richard Boegil's Zero Hour Fork
Loading...
Searching...
No Matches
w3ddesc.cpp
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/w3ddesc.cpp 3 3/04/99 1:58p Naty_h $ */
20
/***********************************************************************************************
21
*** Confidential - Westwood Studios ***
22
***********************************************************************************************
23
* *
24
* Project Name : Commando Tools - W3D export *
25
* *
26
* $Archive:: /Commando/Code/Tools/max2w3d/w3ddesc.cpp $*
27
* *
28
* $Author:: Naty_h $*
29
* *
30
* $Modtime:: 3/03/99 11:29a $*
31
* *
32
* $Revision:: 3 $*
33
* *
34
*---------------------------------------------------------------------------------------------*
35
* Functions: *
36
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
37
38
39
40
#include "
w3ddesc.h
"
41
#include "
w3dexp.h
"
42
#include "
dllmain.h
"
43
44
/***********************************************************************************************
45
* W3dClassDesc::Create -- Creates a W3dExportClass object *
46
* *
47
* MAX calls this method when it needs a pointer to a new instance of the plug-in class. *
48
* *
49
* INPUT: *
50
* *
51
* OUTPUT: *
52
* *
53
* WARNINGS: *
54
* *
55
* HISTORY: *
56
* 06/09/1997 GH : Created. *
57
*=============================================================================================*/
58
void
*
W3dClassDesc::Create
(
BOOL
)
59
{
60
return
new
W3dExportClass
;
61
}
62
63
/***********************************************************************************************
64
* W3dClassDesc::IsPublic -- Controls if the plug-in shows up in lists from the user to choose *
65
* *
66
* Controls if the plug-in shows up in lists from the user to choose from. *
67
* *
68
* INPUT: none *
69
* *
70
* OUTPUT: true! *
71
* *
72
* WARNINGS: *
73
* *
74
* HISTORY: *
75
* 06/09/1997 GH : Created. *
76
*=============================================================================================*/
77
int
W3dClassDesc::IsPublic
()
78
{
79
return
1;
80
}
81
82
/***********************************************************************************************
83
* W3dClassDesc::ClassName -- returns the name of the class *
84
* *
85
* This method returns the name of the class. This name appears in the button for the *
86
* plug-in in the MAX user interface. *
87
* *
88
* INPUT: none *
89
* *
90
* OUTPUT: Name of the class *
91
* *
92
* WARNINGS: *
93
* *
94
* HISTORY: *
95
* 06/09/1997 GH : Created. *
96
*=============================================================================================*/
97
const
TCHAR *
W3dClassDesc::ClassName
()
98
{
99
return
Get_String
(
IDS_W3D_SHORT_DESCRIPTION
);
100
}
101
102
/***********************************************************************************************
103
* W3dClassDesc::SuperClassID -- returns the SuperClassID of the plug-in. *
104
* *
105
* INPUT: none *
106
* *
107
* OUTPUT: The SuperClassID of the plug-in. *
108
* *
109
* WARNINGS: *
110
* *
111
* HISTORY: *
112
* 06/09/1997 GH : Created. *
113
*=============================================================================================*/
114
SClass_ID
W3dClassDesc::SuperClassID
()
115
{
116
return
SCENE_EXPORT_CLASS_ID;
117
}
118
119
/***********************************************************************************************
120
* W3dClassDesc::ClassID -- Returns the class ID *
121
* *
122
* This method must return the unique ID for the object. If two ClassIDs conflict, the *
123
* system will only load the first one it finds. The ClassID consists of two unsigned 32-bit *
124
* quantities. *
125
* *
126
* INPUT: none *
127
* *
128
* OUTPUT: The unique ClassID of the plug-in. *
129
* *
130
* WARNINGS: *
131
* *
132
* HISTORY: *
133
* 06/09/1997 GH : Created. *
134
*=============================================================================================*/
135
Class_ID
W3dClassDesc::ClassID
()
136
{
137
return
W3D_EXPORTER_CLASS_ID
;
138
}
139
140
/***********************************************************************************************
141
* W3dClassDesc::Category -- returns a string describing the category a plug-in fits into *
142
* *
143
* INPUT: *
144
* *
145
* OUTPUT: *
146
* *
147
* WARNINGS: *
148
* *
149
* HISTORY: *
150
* 06/09/1997 GH : Created. *
151
*=============================================================================================*/
152
const
TCHAR *
W3dClassDesc::Category
()
153
{
154
return
Get_String
(
IDS_SCENE_EXPORT
);
155
}
156
IDS_SCENE_EXPORT
#define IDS_SCENE_EXPORT
Definition
resource.h:28
IDS_W3D_SHORT_DESCRIPTION
#define IDS_W3D_SHORT_DESCRIPTION
Definition
resource.h:43
BOOL
#define BOOL
Definition
Wnd_File.h:57
W3dClassDesc::SuperClassID
SClass_ID SuperClassID()
Definition
w3ddesc.cpp:114
W3dClassDesc::ClassID
Class_ID ClassID()
Definition
w3ddesc.cpp:135
W3dClassDesc::Create
void * Create(BOOL)
Definition
w3ddesc.cpp:58
W3dClassDesc::ClassName
const TCHAR * ClassName()
Definition
w3ddesc.cpp:97
W3dClassDesc::Category
const TCHAR * Category()
Definition
w3ddesc.cpp:152
W3dClassDesc::IsPublic
int IsPublic()
Definition
w3ddesc.cpp:77
W3dExportClass
Definition
w3dexp.h:53
Get_String
TCHAR * Get_String(int id)
Definition
dllmain.cpp:198
dllmain.h
w3ddesc.h
W3D_EXPORTER_CLASS_ID
#define W3D_EXPORTER_CLASS_ID
Definition
w3ddesc.h:50
w3dexp.h
Code
Tools
WW3D
max2w3d
w3ddesc.cpp
Generated by
1.13.2