unit particles can be bound to first vertice of meshes ( <meshName value="part1.001" /> )

This commit is contained in:
titiger
2014-01-04 18:40:00 +01:00
parent 37494a9c37
commit ba1d03118e
6 changed files with 75 additions and 4 deletions

View File

@@ -133,6 +133,7 @@ public:
bool getTwoSided() const {return twoSided;}
bool getCustomTexture() const {return customColor;}
bool getNoSelect() const {return noSelect;}
string getName() const {return name;}
uint32 getTextureFlags() const { return textureFlags; }

View File

@@ -20,6 +20,7 @@
#include "randomgen.h"
#include "xml_parser.h"
#include "leak_dumper.h"
#include "interpolation.h"
using std::list;
using Shared::Util::RandomGen;
@@ -351,6 +352,8 @@ public:
float sizeNoEnergy;
float gravity;
float rotation;
const Model *unitModel;
string meshName;
bool isVisibleAtNight;
bool isVisibleAtDay;
bool isDaylightAffected;
@@ -391,6 +394,8 @@ public:
void setSizeNoEnergy(float sizeNoEnergy) {this->sizeNoEnergy= sizeNoEnergy;}
void setGravity(float gravity) {this->gravity= gravity;}
void setRotation(float rotation);
const void setUnitModel(const Model* unitModel) {this->unitModel= unitModel;}
void setMeshName(string meshName) {this->meshName= meshName;}
void setRelative(bool relative) {this->relative= relative;}
void setRelativeDirection(bool relativeDirection) {this->relativeDirection= relativeDirection;}
void setFixed(bool fixed) {this->fixed= fixed;}