Skip to content

Instantly share code, notes, and snippets.

@pawelsawicz
Last active May 25, 2016 21:51
Show Gist options
  • Save pawelsawicz/83323b8f4d3015834b950031ca80d169 to your computer and use it in GitHub Desktop.
Save pawelsawicz/83323b8f4d3015834b950031ca80d169 to your computer and use it in GitHub Desktop.
Old way
void CGame::SendNotifyMsg(int iFromH, int iToH, WORD wMsgType, DWORD sV1, DWORD sV2, DWORD sV3, const char * pString,
DWORD sV4, DWORD sV5, DWORD sV6, DWORD sV7, DWORD sV8, DWORD sV9, char * pString2) const
New way
class MessageContent{
public:
DWORD sV1;
DWORD sV2;
DWORD sV3;
const char * pString;
DWORD sV4;
DWORD sV5;
DWORD sV6;
DWORD sV7;
DWORD sV8;
DWORD sV9;
char * pString2;
}
void CGame::SendNotifyMsg(int iFromH, int iToH, WORD wMsgType, MessageContent content) const
void CGame::SendNotifyMsg(int iFromH, int iToH, WORD wMsgType, DWORD sV1, DWORD sV2, DWORD sV3, const char * pString,
DWORD sV4, DWORD sV5, DWORD sV6, DWORD sV7, DWORD sV8, DWORD sV9, char * pString2) const
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment