added some tables, add upgrade
now not reading tables: morphs chains upgrades towersOnLevel
This commit is contained in:
40
base_types.h
40
base_types.h
@@ -34,6 +34,46 @@ struct Tower
|
||||
};
|
||||
|
||||
|
||||
struct srcTrigger
|
||||
{
|
||||
enum triggerType
|
||||
{
|
||||
onDestination,
|
||||
onTimer,
|
||||
onAlienInRadius
|
||||
};
|
||||
int childId; // =-1 for non birth splash (e.q. only damage)
|
||||
bool delParent;
|
||||
float damage;
|
||||
float radius;
|
||||
triggerType type;
|
||||
unsigned int timer;
|
||||
int count;
|
||||
float randomPosRadius;
|
||||
};
|
||||
|
||||
|
||||
struct srcSplash
|
||||
{
|
||||
QString name;
|
||||
int imgType;
|
||||
float speed; // in cells
|
||||
bool autoControl;
|
||||
QList <int> triggerIndexes;
|
||||
};
|
||||
|
||||
struct srcTower
|
||||
{
|
||||
QString name;
|
||||
int type;
|
||||
int PlayerId; // tower's owner
|
||||
float range; // in cells
|
||||
float reload; // time for reload in ticks
|
||||
QList <srcTrigger> triggers;
|
||||
QList <srcSplash> splashes;
|
||||
};
|
||||
|
||||
|
||||
struct Splash
|
||||
{
|
||||
int Id;
|
||||
|
||||
Reference in New Issue
Block a user