script translator
More...
Inherited by CCPUBoxEmitterTranslator, CCPUMaterialTranslator, PUAffectorTranslator, PUAlignAffectorTranslator, PUBaseColliderTranslator, PUBaseForceAffectorTranslator, PUBehaviourTranslator, PUBoxColliderTranslator, PUCircleEmitterTranslator, PUCollisionAvoidanceAffectorTranslator, PUColorAffectorTranslator, PUDoAffectorEventHandlerTranslator, PUDoEnableComponentEventHandlerTranslator, PUDoExpireEventHandlerTranslator, PUDoFreezeEventHandlerTranslator, PUDoPlacementParticleEventHandlerTranslator, PUDoScaleEventHandlerTranslator, PUDoStopSystemEventHandlerTranslator, PUDynamicAttributeTranslator, PUEmitterTranslator, PUEventHandlerTranslator, PUFlockCenteringAffectorTranslator, PUForceFieldAffectorTranslator, PUGeometryRotatorTranslator, PUGravityAffectorTranslator, PUInterParticleColliderTranslator, PUJetAffectorTranslator, PULineAffectorTranslator, PULinearForceAffectorTranslator, PULineEmitterTranslator, PUMaterialPassTranslator, PUMaterialTechniqueTranslator, PUMaterialTextureUnitTranslator, PUMeshSurfaceEmitterTranslator, PUObserverTranslator, PUOnClearObserverTranslator, PUOnCollisionObserverTranslator, PUOnCountObserverTranslator, PUOnEmissionObserverTranslator, PUOnEventFlagObserverTranslator, PUOnExpireObserverTranslator, PUOnPositionObserverTranslator, PUOnQuotaObserverTranslator, PUOnRandomObserverTranslator, PUOnTimeObserverTranslator, PUOnVelocityObserverTranslator, PUParticleFollowerTranslator, PUParticleSystem3DTranslator, PUPathFollowerTranslator, PUPlaneColliderTranslator, PUPointEmitterTranslator, PUPositionEmitterTranslator, PURandomiserTranslator, PURendererTranslator, PUScaleAffectorTranslator, PUScaleVelocityAffectorTranslator, PUSineForceAffectorTranslator, PUSlaveBehaviourTranslator, PUSlaveEmitterTranslator, PUSphereColliderTranslator, PUSphereSurfaceEmitterTranslator, PUTechniqueTranslator, PUTextureAnimatorTranslator, PUTextureRotatorTranslator, PUVelocityMatchingAffectorTranslator, and PUVortexAffectorTranslator.
|
virtual void | translate (PUScriptCompiler *compiler, PUAbstractNode *node) |
local | translate ( local compiler, local node) |
virtual bool | translateChildProperty (PUScriptCompiler *compiler, PUAbstractNode *node) |
| Only parses a certain child property.
|
|
var | translateChildProperty ( var compiler, var node) |
| Only parses a certain child property.
|
|
local | translateChildProperty ( local compiler, local node) |
| Only parses a certain child property.
|
|
virtual bool | translateChildObject (PUScriptCompiler *compiler, PUAbstractNode *node) |
| Only parses a certain child objec.
|
|
var | translateChildObject ( var compiler, var node) |
| Only parses a certain child objec.
|
|
local | translateChildObject ( local compiler, local node) |
| Only parses a certain child objec.
|
|
bool | getVector2 (PUAbstractNodeList::const_iterator i, PUAbstractNodeList::const_iterator end, Vec2 *result, int maxEntries=2) |
| Parse Vector2.
|
|
bool | getVector3 (PUAbstractNodeList::const_iterator i, PUAbstractNodeList::const_iterator end, Vec3 *result, int maxEntries=3) |
| Parse Vector3.
|
|
bool | getVector4 (PUAbstractNodeList::const_iterator i, PUAbstractNodeList::const_iterator end, Vec4 *result, int maxEntries=4) |
| Parse Vector4.
|
|
bool | getQuaternion (PUAbstractNodeList::const_iterator i, PUAbstractNodeList::const_iterator end, Quaternion *result, int maxEntries=4) |
| Parse Quaternion.
|
|
local | getQuaternion ( local i, local end, local result, local 4) |
| Parse Quaternion.
|
|
bool | passValidateProperty (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop, const std::string &token, ValidationType validationType) |
| Validate a property.
|
|
bool | passValidatePropertyNoValues (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop, const std::string &token) |
| Validate whether a property has values.
|
|
bool | passValidatePropertyNumberOfValues (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop, const std::string &token, unsigned short numberOfValues) |
| Validate whether the number of values is correct.
|
|
bool | passValidatePropertyNumberOfValuesRange (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop, const std::string &token, unsigned short minNumberOfValues, unsigned short maxNumberOfValues) |
| Validate whether the number of values is between a range.
|
|
bool | passValidatePropertyValidReal (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop) |
| Validate whether the value is a correct Real.
|
|
bool | passValidatePropertyValidInt (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop) |
| Validate whether the value is a correct int.
|
|
bool | passValidatePropertyValidUint (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop) |
| Validate whether the value is a correct uint.
|
|
bool | passValidatePropertyValidBool (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop) |
| Validate whether the value is a correct bool.
|
|
bool | passValidatePropertyValidVector2 (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop) |
| Validate whether the value is a correct Vector2.
|
|
bool | passValidatePropertyValidVector3 (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop) |
| Validate whether the value is a correct Vector3.
|
|
bool | passValidatePropertyValidVector4 (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop) |
| Validate whether the value is a correct Vector4.
|
|
var | passValidatePropertyValidVector4 ( var compiler, var prop) |
| Validate whether the value is a correct Vector4.
|
|
local | passValidatePropertyValidVector4 ( local compiler, local prop) |
| Validate whether the value is a correct Vector4.
|
|
bool | passValidatePropertyValidQuaternion (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop) |
| Validate whether the value is a correct Quaternion.
|
|
void | errorUnexpectedToken (PUScriptCompiler *compiler, PUAbstractNode *node) |
| Adds an error to the compiler: An unknown token is read.
|
|
void | errorUnexpectedProperty (PUScriptCompiler *compiler, PUPropertyAbstractNode *prop) |
| Adds an error to the compiler: An unknown property is read.
|
|
script translator
Internal class, the script translator.
var translate |
( |
var |
compiler, |
|
|
var |
node |
|
) |
| |
|
inlinevirtual |
local translate |
( |
local |
compiler, |
|
|
local |
node |
|
) |
| |
|
inlinevirtual |
The documentation for this struct was generated from the following file: