iSyntaxService Struct Reference
[Loading & Saving support]
This component provides services for other loaders to easily parse properties of standard CS world syntax.
More...
#include <services.h>
Inheritance diagram for iSyntaxService:

Public Methods | |
virtual bool | ParseBool (iDocumentNode *node, bool &result, bool def_result)=0 |
Parse the value of this node and return a boolean depending on this value. | |
virtual bool | ParseMatrix (iDocumentNode *node, csMatrix3 &m)=0 |
Parse a matrix description. | |
virtual bool | ParseVector (iDocumentNode *node, csVector3 &v)=0 |
Parse a vector description. | |
virtual bool | ParseBox (iDocumentNode *node, csBox3 &v)=0 |
Parse a box description. | |
virtual bool | ParseColor (iDocumentNode *node, csColor &c)=0 |
Parse a color description. | |
virtual bool | ParseMixmode (iDocumentNode *node, uint &mixmode)=0 |
Parse a mixmode description. | |
virtual bool | HandlePortalParameter (iDocumentNode *child, iLoaderContext *ldr_context, uint32 &flags, bool &mirror, bool &warp, int &msv, csMatrix3 &m, csVector3 &before, csVector3 &after, iString *destSector, bool &handled)=0 |
Handles a common portal parameter. | |
virtual bool | ParseGradient (iDocumentNode *node, csGradient &gradient)=0 |
Parse a color gradient. | |
virtual bool | ParseShaderParam (iDocumentNode *node, csShaderVariable *var)=0 |
Parse a shader variable declaration. | |
virtual void | ReportError (const char *msgid, iDocumentNode *errornode, const char *msg,...)=0 |
Report an error and also gives a path in the XML tree. | |
virtual void | ReportBadToken (iDocumentNode *badtokennode)=0 |
Report a bad token. | |
virtual void | Report (const char *msgid, int severity, iDocumentNode *errornode, const char *msg,...)=0 |
Report something, also gives a path in the XML tree. | |
virtual bool | ParseAlphaMode (iDocumentNode *node, iStringSet *strings, csAlphaMode &alphaMode)=0 |
Parse an alphamode description. | |
virtual bool | ParseZMode (iDocumentNode *node, csZBufMode &zmode, bool allowZmesh=false)=0 |
Attempt to parse a zmode from node. |
Detailed Description
This component provides services for other loaders to easily parse properties of standard CS world syntax.
Definition at line 65 of file services.h.
Member Function Documentation
|
Handles a common portal parameter. flags: contains all flags found in the description. Returns false on failure. Returns false in 'handled' if it couldn't understand the token. |
|
Parse an alphamode description. Returns true if successful. |
|
Parse the value of this node and return a boolean depending on this value. The following mapping happens (case insensitive):
|
|
Parse a box description. Returns true if successful. |
|
Parse a color description. Returns true if successful. |
|
Parse a color gradient.
|
|
Parse a matrix description. Returns true if successful. |
|
Parse a mixmode description. Returns true if successful. |
|
Parse a shader variable declaration.
|
|
Parse a vector description. Returns true if successful. |
|
Attempt to parse a zmode from node. allowZmesh specifies whether ZMESH and ZMESH2 zmodes should be saved to zmode or rejected, causing the method to fail and return 'false'.
|
|
Report something, also gives a path in the XML tree.
|
|
Report a bad token. This is a convenience function which will eventually call ReportError(). |
|
Report an error and also gives a path in the XML tree.
|
The documentation for this struct was generated from the following file:
- imap/services.h
Generated for Crystal Space by doxygen 1.2.18