Compare commits
1 Commits
dx11
...
issue-4-bi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1eda856283 |
@@ -317,6 +317,7 @@ class CPythonNetworkStream : public CNetworkStream, public CSingleton<CPythonNet
|
|||||||
// Main Game Phase
|
// Main Game Phase
|
||||||
bool SendC2CPacket(DWORD dwSize, void * pData);
|
bool SendC2CPacket(DWORD dwSize, void * pData);
|
||||||
bool SendChatPacket(const char * c_szChat, BYTE byType = CHAT_TYPE_TALKING);
|
bool SendChatPacket(const char * c_szChat, BYTE byType = CHAT_TYPE_TALKING);
|
||||||
|
bool SendBiologSubmit();
|
||||||
bool SendWhisperPacket(const char * name, const char * c_szChat);
|
bool SendWhisperPacket(const char * name, const char * c_szChat);
|
||||||
bool SendMessengerAddByVIDPacket(DWORD vid);
|
bool SendMessengerAddByVIDPacket(DWORD vid);
|
||||||
bool SendMessengerAddByNamePacket(const char * c_szName);
|
bool SendMessengerAddByNamePacket(const char * c_szName);
|
||||||
|
|||||||
@@ -499,6 +499,13 @@ PyObject* netSendChatPacket(PyObject* poSelf, PyObject* poArgs)
|
|||||||
return Py_BuildNone();
|
return Py_BuildNone();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PyObject* netSendBiologSubmit(PyObject* poSelf, PyObject* poArgs)
|
||||||
|
{
|
||||||
|
CPythonNetworkStream& rkNetStream = CPythonNetworkStream::Instance();
|
||||||
|
rkNetStream.SendBiologSubmit();
|
||||||
|
return Py_BuildNone();
|
||||||
|
}
|
||||||
|
|
||||||
PyObject* netSendEmoticon(PyObject* poSelf, PyObject* poArgs)
|
PyObject* netSendEmoticon(PyObject* poSelf, PyObject* poArgs)
|
||||||
{
|
{
|
||||||
int eEmoticon;
|
int eEmoticon;
|
||||||
@@ -1700,6 +1707,7 @@ void initnet()
|
|||||||
{ "IsConnect", netIsConnect, METH_VARARGS },
|
{ "IsConnect", netIsConnect, METH_VARARGS },
|
||||||
|
|
||||||
{ "SendChatPacket", netSendChatPacket, METH_VARARGS },
|
{ "SendChatPacket", netSendChatPacket, METH_VARARGS },
|
||||||
|
{ "SendBiologSubmit", netSendBiologSubmit, METH_VARARGS },
|
||||||
{ "SendEmoticon", netSendEmoticon, METH_VARARGS },
|
{ "SendEmoticon", netSendEmoticon, METH_VARARGS },
|
||||||
{ "SendWhisperPacket", netSendWhisperPacket, METH_VARARGS },
|
{ "SendWhisperPacket", netSendWhisperPacket, METH_VARARGS },
|
||||||
|
|
||||||
|
|||||||
@@ -788,6 +788,11 @@ bool CPythonNetworkStream::SendChatPacket(const char * c_szChat, BYTE byType)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool CPythonNetworkStream::SendBiologSubmit()
|
||||||
|
{
|
||||||
|
return SendChatPacket("/biolog_submit");
|
||||||
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
// Emoticon
|
// Emoticon
|
||||||
void CPythonNetworkStream::RegisterEmoticonString(const char * pcEmoticonString)
|
void CPythonNetworkStream::RegisterEmoticonString(const char * pcEmoticonString)
|
||||||
@@ -4357,4 +4362,4 @@ void CPythonNetworkStream::Discord_Close()
|
|||||||
{
|
{
|
||||||
Discord_Shutdown();
|
Discord_Shutdown();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user