2 @Copyright Looking Glass Studios, Inc.
3 1996,1997,1998,1999,2000 Unpublished Work.
6 // $Header: r:/t2repos/thief2/src/sound/songmiss.cpp,v 1.1 1999/04/26 15:17:30 mwhite Exp $
13 //#include <palrstyp.h>
15 //#include <palette.h>
23 // must be last header
26 ////////////////////////////////////////////////////////////
31 // Here's my descriptor, which identifies my stuff to the tag file & editor
32 sFileVarDesc gSongParamsDesc
=
34 kMissionVar
, // Where do I get saved?
35 "SONGPARAMS", // Tag file tag
36 "Song Parameters", // friendly name
37 FILEVAR_TYPE(sMissionSongParams
), // Type (for editing)
39 { 1, 0}, // last valid version
43 // The actual global variable
44 class cSongParams
: public cFileVar
<sMissionSongParams
,&gSongParamsDesc
>
48 // Silly assignment operator
49 cSongParams
& operator =(const sMissionSongParams
& v
) { *(sMissionSongParams
*)this = v
; return *this; };
55 // global_ambient = ambient_light*256.0;
66 static cSongParams gSongParams
;
68 //------------------------------------------------------------
72 static sFieldDesc param_field
[] =
74 { "Song Name", kFieldTypeString
, FieldLocation(sMissionSongParams
,songName
), },
78 static sStructDesc param_sdesc
= StructDescBuild(sMissionSongParams
,kStructFlagNone
,param_field
);
81 //------------------------------------------------------------
85 void MissionSongInit(void)
87 AutoAppIPtr_(StructDescTools
,pTools
);
88 pTools
->Register(¶m_sdesc
);
91 void MissionSongTerm(void)
96 //----------------------------------------
99 const sMissionSongParams
* GetMissionSongParams(void)
105 void SetMissionSongParams(const sMissionSongParams
* params
)
107 gSongParams
= *params
;
108 gSongParams
.Update();