added Towers loading in level
This commit is contained in:
23
loader.h
23
loader.h
@@ -10,8 +10,8 @@
|
||||
|
||||
struct tbHeader
|
||||
{
|
||||
int id;
|
||||
QString name;
|
||||
int id;
|
||||
QString name;
|
||||
};
|
||||
|
||||
struct tbAlien : tbHeader
|
||||
@@ -36,26 +36,12 @@ struct tbSplash : tbHeader
|
||||
|
||||
struct tbTrigger : tbHeader
|
||||
{
|
||||
enum triggerType
|
||||
{
|
||||
onDestination,
|
||||
onTimer,
|
||||
onAlienInRadius
|
||||
};
|
||||
|
||||
enum aimType
|
||||
{
|
||||
noAim,
|
||||
parentAim,
|
||||
allSide,
|
||||
nearlestAlien
|
||||
};
|
||||
float damage;
|
||||
float radius;
|
||||
int chance;
|
||||
bool delParent;
|
||||
aimType childAim;
|
||||
triggerType type;
|
||||
srcTriggerType::aimType childAim;
|
||||
srcTriggerType::triggerType type;
|
||||
unsigned int timer;
|
||||
int count;
|
||||
float randomPosRadius;
|
||||
@@ -191,6 +177,7 @@ private:
|
||||
void readWaveParts();
|
||||
void readUpgrades();
|
||||
|
||||
void fillTowerChains(QList <tbChain> * chlist, QList <int> * trigIds, srcTowerType * stt, int parId, int parIndex, int * recursiveCheck);
|
||||
void validate(QString filename);
|
||||
QString CreateMapExample();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user