PyDict_SetItemString( dict, "basesound", PyInt_FromLong( info.basesound ) ); PyDict_SetItemString( dict, "body", PyInt_FromLong( info.body ) ); PyDict_SetItemString( dict, "figurine", PyInt_FromLong( info.figurine ) ); PyDict_SetItemString( dict, "mountid", PyInt_FromLong( info.mountid ) ); PyDict_SetItemString( dict, "flags", PyInt_FromLong( info.flags ) ); PyDict_SetItemString( dict, "type", PyInt_FromLong( info.type ) );
PyDict_SetStolenItem( dict, "basesound", PyInt_FromLong( info.basesound ) ); PyDict_SetStolenItem( dict, "body", PyInt_FromLong( info.body ) ); PyDict_SetStolenItem( dict, "figurine", PyInt_FromLong( info.figurine ) ); PyDict_SetStolenItem( dict, "mountid", PyInt_FromLong( info.mountid ) ); PyDict_SetStolenItem( dict, "flags", PyInt_FromLong( info.flags ) ); PyDict_SetStolenItem( dict, "type", PyInt_FromLong( info.type ) );
static PyObject* wpBodyInfo( PyObject* /*self*/, PyObject* args ){	unsigned short body;	if ( !PyArg_ParseTuple( args, "H:wolfpack.bodyinfo(body)", &body ) )	{		return 0;	}	const stBodyInfo &info = CharBaseDefs::instance()->getBodyInfo( body );	PyObject *dict = PyDict_New();	PyDict_SetItemString( dict, "basesound", PyInt_FromLong( info.basesound ) );	PyDict_SetItemString( dict, "body", PyInt_FromLong( info.body ) );	PyDict_SetItemString( dict, "figurine", PyInt_FromLong( info.figurine ) );	PyDict_SetItemString( dict, "mountid", PyInt_FromLong( info.mountid ) );	PyDict_SetItemString( dict, "flags", PyInt_FromLong( info.flags ) );	PyDict_SetItemString( dict, "type", PyInt_FromLong( info.type ) );	return dict;}