Update of /cvsroot/wpdev/wolfpack/python
In directory sc8-pr-cvs1:/tmp/cvs-serv2837
Modified Files:
global.cpp
Log Message:
added 'decoration command.
Takes RunUO .cfg files to generate the world decoration
Index: global.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/python/global.cpp,v
retrieving revision 1.80
retrieving revision 1.81
diff -C2 -d -r1.80 -r1.81
*** global.cpp 20 Aug 2003 17:10:49 -0000 1.80
--- global.cpp 29 Aug 2003 18:11:00 -0000 1.81
***************
*** 684,687 ****
--- 684,698 ----
}
+ static PyObject* wpHasMap( PyObject* self, PyObject* args )
+ {
+ Q_UNUSED(self);
+ if ( !checkArgInt(0) )
+ {
+ PyErr_BadArgument();
+ return 0;
+ }
+ return Map->hasMap( getArgInt(0) ) ? PyTrue : PyFalse;
+ }
+
/*!
Returns the tiledata information for a item id.
***************
*** 1069,1075 ****
{ "effect", wpEffect, METH_VARARGS, "Shows a graphical effect." },
{ "region", wpRegion, METH_VARARGS, "Gets the region at a specific position" },
! { "currenttime", (PyCFunction)wpCurrenttime, METH_NOARGS, "Time in ms since server-start" },
{ "statics", wpStatics, METH_VARARGS, "Returns a list of static-item at a given position" },
! { "map", wpMap, METH_VARARGS, "Retruns a dictionary with information about a given map tile" },
{ "items", wpItems, METH_VARARGS, "Returns a list of items in a specific sector." },
{ "chars", wpChars, METH_VARARGS, "Returns a list of chars in a specific sector." },
--- 1080,1087 ----
{ "effect", wpEffect, METH_VARARGS, "Shows a graphical effect." },
{ "region", wpRegion, METH_VARARGS, "Gets the region at a specific position" },
! { "currenttime", wpCurrenttime, METH_NOARGS, "Time in ms since server-start" },
{ "statics", wpStatics, METH_VARARGS, "Returns a list of static-item at a given position" },
! { "map", wpMap, METH_VARARGS, "Returns a dictionary with information about a given map tile" },
! { "hasmap", wpHasMap, METH_VARARGS, "Returns true if the map specified is present" },
{ "items", wpItems, METH_VARARGS, "Returns a list of items in a specific sector." },
{ "chars", wpChars, METH_VARARGS, "Returns a list of chars in a specific sector." },
|