openclonk/src/c4group/C4Extra.h

43 lines
1.2 KiB
C
Raw Normal View History

2009-05-08 13:28:41 +00:00
/*
* OpenClonk, http://www.openclonk.org
*
* Copyright (c) 2002 Sven Eberhardt
2009-05-08 13:28:41 +00:00
* Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de
*
* Portions might be copyrighted by other authors who have contributed
* to OpenClonk.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
* See isc_license.txt for full license and disclaimer.
*
* "Clonk" is a registered trademark of Matthes Bender.
* See clonk_trademark_license.txt for full license.
*/
2011-03-13 15:16:45 +00:00
// user-customizable multimedia package Extra.ocg
2009-05-08 13:28:41 +00:00
#ifndef INC_C4Extra
#define INC_C4Extra
#include <C4Group.h>
class C4Extra
{
public:
C4Extra() { Default(); }; // ctor
~C4Extra() { Clear(); }; // dtor
void Default(); // zero fields
void Clear(); // free class members
2009-05-08 13:28:41 +00:00
bool Init(); // init extra group, using scneario presets
bool InitGroup(); // open extra group
2009-05-08 13:28:41 +00:00
2011-03-13 15:16:45 +00:00
std::vector<C4Group*> ExtraGroups; // extra.ocg root folders
2009-05-08 13:28:41 +00:00
protected:
bool LoadDef(C4Group &hGroup, const char *szName); // load preset for definition
};
2009-05-08 13:28:41 +00:00
#endif