oaddr = PyTuple_New(2);PyTuple_SetItem(oaddr,0, PyString_FromString(caddr));PyTuple_SetItem(oaddr,1, PyInt_FromLong(port)); }else{// something went wrongoaddr = Py_None; Py_INCREF(Py_None); } PyDict_SetItemString(dict,"addr", oaddr); PyDict_SetItemString(dict,"state", PyIn...
shipEff.repeat =newPyInt(1000); shipEff.randomSeed =newPyNone; shipEff.error =newPyNone; PyTuple* tmp =newPyTuple(3);//tmp->SetItem(1, dmgMsg.Encode());tmp->SetItem(2, shipEff.Encode());std::vector<PyTuple*> events;//events.push_back(dmgMsg.Encode());events.push_back(shipEff...
oaddr = PyTuple_New(2);PyTuple_SetItem(oaddr,0, PyString_FromString(caddr));PyTuple_SetItem(oaddr,1, PyInt_FromLong(port)); }else{// something went wrongoaddr = Py_None; Py_INCREF(Py_None); } PyDict_SetItemString(dict,"addr", oaddr); PyDict_SetItemString(dict,"state", PyIn...