00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef CLIENT_MXML_UFOAI_H
00022 #define CLIENT_MXML_UFOAI_H
00023
00024 #include "mxml.h"
00025 #include "../../shared/mathlib.h"
00026 #include "../../shared/ufotypes.h"
00027
00028 void mxml_AddString(mxml_node_t *parent, const char *name, const char *value);
00029 void mxml_AddBool(mxml_node_t *parent, const char *name, qboolean value);
00030 void mxml_AddFloat(mxml_node_t *parent, const char *name, float value);
00031 void mxml_AddDouble(mxml_node_t *parent, const char *name, double value);
00032 void mxml_AddByte(mxml_node_t *parent, const char *name, byte value);
00033 void mxml_AddShort(mxml_node_t *parent, const char *name, short value);
00034 void mxml_AddInt(mxml_node_t *parent, const char *name, int value);
00035 void mxml_AddLong(mxml_node_t *parent, const char *name, long value);
00036 void mxml_AddPos3(mxml_node_t *parent, const char *name, const vec3_t pos);
00037 void mxml_AddPos2(mxml_node_t *parent, const char *name, const vec2_t pos);
00038 void mxml_AddDate(mxml_node_t *parent, const char *name, const int day, const int sec);
00039
00040 void mxml_AddStringValue(mxml_node_t *parent, const char *name, const char *value);
00041 void mxml_AddBoolValue(mxml_node_t *parent, const char *name, qboolean value);
00042 void mxml_AddFloatValue(mxml_node_t *parent, const char *name, float value);
00043 void mxml_AddDoubleValue(mxml_node_t *parent, const char *name, double value);
00044 void mxml_AddByteValue(mxml_node_t *parent, const char *name, byte value);
00045 void mxml_AddShortValue(mxml_node_t *parent, const char *name, short value);
00046 void mxml_AddIntValue(mxml_node_t *parent, const char *name, int value);
00047 void mxml_AddLongValue(mxml_node_t *parent, const char *name, long value);
00048
00049 mxml_node_t * mxml_AddNode(mxml_node_t *parent, const char *name);
00050
00051 qboolean mxml_GetBool(mxml_node_t *parent, const char *name, const qboolean defaultval);
00052 int mxml_GetInt(mxml_node_t *parent, const char *name, const int defaultval);
00053 short mxml_GetShort(mxml_node_t *parent, const char *name, const short defaultval);
00054 long mxml_GetLong(mxml_node_t *parent, const char *name, const long defaultval);
00055 const char * mxml_GetString(mxml_node_t *parent, const char *name);
00056 float mxml_GetFloat(mxml_node_t *parent, const char *name, const float defaultval);
00057 double mxml_GetDouble(mxml_node_t *parent, const char *name, const double defaultval);
00058 mxml_node_t * mxml_GetPos2(mxml_node_t *parent, const char *name, vec2_t pos);
00059 mxml_node_t * mxml_GetNextPos2(mxml_node_t *actual, mxml_node_t *parent, const char *name, vec2_t pos);
00060 mxml_node_t * mxml_GetPos3(mxml_node_t *parent, const char *name, vec3_t pos);
00061 mxml_node_t * mxml_GetNextPos3(mxml_node_t *actual, mxml_node_t *parent, const char *name, vec3_t pos);
00062 mxml_node_t * mxml_GetDate(mxml_node_t *parent, const char *name, int *day, int *sec);
00063
00064 mxml_node_t * mxml_GetNode(mxml_node_t *parent, const char *name);
00065 mxml_node_t * mxml_GetNextNode(mxml_node_t *current, mxml_node_t *parent, const char *name);
00066
00067 mxml_type_t mxml_ufo_type_cb(mxml_node_t *node);
00068
00069 #endif