本文整理汇总了C++中MSG_BeginWriting函数的典型用法代码示例。如果您正苦于以下问题:C++ MSG_BeginWriting函数的具体用法?C++ MSG_BeginWriting怎么用?C++ MSG_BeginWriting使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了MSG_BeginWriting函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: GetHelperPtr
void CHelperManager::MemberListInfo_Send_toAllPlayer(entityPCList_t* pl, int fstate )
{
struct tagHelper *helperlist = GetHelperPtr(pl->idx);
if(NULL == helperlist) return;
entityPCList_t target = { 0, };
for (int idx = 0; idx < helperlist->List.count; idx++ )
{
if ( g_entityListMng.FindPCList ( helperlist->List.Member[idx].name, &target ) < 0) continue;
if( TRUE == helperlist->List.Member[idx].bIsMatchHELPERandTACKER) continue;
if ( target.serverIdx == 0 )
{
MSG_BeginWriting ( &netMessage );
MSG_Clear( &netMessage );
MSG_WriteByte(&netMessage, EXTEND_SECOND);
MSG_WriteShort ( &netMessage, HELPER_SYSTEM );
MSG_WriteShort ( &netMessage, SC_LISTINFO_toAllPlayer );
MSG_WriteByte ( &netMessage, pl->level );
MSG_WriteByte ( &netMessage, pl->job );
MSG_WriteByte ( &netMessage, fstate == HelpersLogout ? -1 : pl->worldIdx );
MSG_WriteString ( &netMessage, pl->name );
MSG_WriteShort ( &netMessage, helperlist->List.mode);
playerCharacter_t* pPlayer=gcpTools->GetPlayerRecordPointer(target.idxOnServer);
if(NULL == pPlayer) {
MSG_EndWriting(&netMessage);
return;
}
NET_SendMessage ( &pPlayer->sock, &netMessage );
MSG_EndWriting(&netMessage);
ShowLogInfo("SC_LISTINFO_toAllPlayer: PlayName= %s, level= %d, job= %d, fstate=%d,mode=%d,",
pl->name,pl->level, pl->job,fstate,helperlist->List.mode );
}else{
MSG_BeginWriting ( &netMessage );
MSG_Clear( &netMessage );
MSG_WriteByte(&netMessage, EXTEND_SECOND);
MSG_WriteShort ( &netMessage, HELPER_SYSTEM );
MSG_WriteShort ( &netMessage, SS_REPLY_UPDATE_MemberList_toServer);
MSG_WriteByte ( &netMessage, target.serverIdx );
MSG_WriteShort ( &netMessage, target.idxOnServer );
MSG_WriteByte ( &netMessage, pl->level );
MSG_WriteByte ( &netMessage, pl->job );
MSG_WriteByte ( &netMessage, fstate == HelpersLogout ? -1 : pl->worldIdx );
MSG_WriteString ( &netMessage, pl->name );
MSG_WriteShort ( &netMessage, helperlist->List.mode);
NET_SendUnreliableMessage ( &g_memberServer[target.serverIdx].sock, &netMessage );
MSG_EndWriting(&netMessage);
}
}
}
开发者ID:gthgame,项目名称:gth,代码行数:60,代码来源:HelperManager.cpp
示例2: SV_AntiCheat_Nag
static void SV_AntiCheat_Nag (client_t *cl)
{
if (cl->anticheat_valid)
{
cl->anticheat_nag_time = 0;
return;
}
if (cl->netchan.reliable_length == 0 && (strstr (cl->versionString, "Win32") || strstr (cl->versionString, "win32")))
{
MSG_BeginWriting (svc_stufftext);
MSG_WriteString ("set _old_centertime $scr_centertime\n");
SV_AddMessage (cl, true);
MSG_BeginWriting (svc_stufftext);
MSG_WriteString (va ("set scr_centertime %g\n", sv_anticheat_nag_time->value));
SV_AddMessage (cl, true);
//force a buffer flush so the stufftexts go through (yuck)
SV_WriteReliableMessages (cl, cl->netchan.message.buffsize);
Netchan_Transmit (&cl->netchan, 0, NULL);
MSG_BeginWriting (svc_centerprint);
MSG_WriteString (sv_anticheat_nag_message->string);
SV_AddMessage (cl, true);
MSG_BeginWriting (svc_stufftext);
MSG_WriteString ("set scr_centertime $_old_centertime\n");
SV_AddMessage (cl, true);
cl->anticheat_nag_time = 0;
}
}
开发者ID:Slipyx,项目名称:r1q2,代码行数:33,代码来源:sv_anticheat.c
示例3: GTH_FindPCByName
void CHelperManager_Encoder::SendMessage_ReplySummons(int reply, char* toName, char* fromName)
{
int idx = GTH_FindPCByName(toName);
if ( 0 <= idx)
{
playerCharacter_t* pTaker=gcpTools->GetPlayerRecordPointer(idx);
if(NULL == pTaker) return;
MSG_BeginWriting(&netMessage);
MSG_Clear( &netMessage );
{
MSG_WriteByte(&netMessage, EXTEND_SECOND);
MSG_WriteShort ( &netMessage, HELPER_SYSTEM );
MSG_WriteShort(&netMessage, SC_SPAWN_Res_toTaker);
MSG_WriteByte(&netMessage, reply);
MSG_WriteString(&netMessage, fromName);
NET_SendMessage(&pTaker->sock, &netMessage);
}
MSG_EndWriting(&netMessage);
}
else
{
MSG_BeginWriting(&netMessage);
MSG_Clear( &netMessage );
{
MSG_WriteByte(&netMessage, EXTEND_SECOND);
MSG_WriteShort ( &netMessage, HELPER_SYSTEM );
MSG_WriteShort(&netMessage, SS_SPAWN_Res_fromServer);
MSG_WriteByte(&netMessage, reply);
MSG_WriteString(&netMessage, toName);
MSG_WriteString(&netMessage, fromName);
if ( TRUE == g_config.isManager )
{
for (int serveridx=1; serveridx < MAX_MEMBER_SERVER; serveridx++)
{
if ( !g_memberServer[serveridx].active ) continue;
NET_SendUnreliableMessage(&g_memberServer[serveridx].sock, &netMessage);
}
}
else
{
MSG_WriteByte(&netMessage, g_config.gameServerNo);
NET_SendUnreliableMessage(&localSocket, &netMessage);
}
}
MSG_EndWriting(&netMessage);
}
}
开发者ID:gthgame,项目名称:gth,代码行数:55,代码来源:CHelperManager_Encoder.cpp
示例4: MSG_ReadByte
void CHelperManager::ProcessMessage_ServerReplySummons(void)
{
int idx=-1;
char toName[NAMESTRING+1], fromName[NAMESTRING+1];
int reply = MSG_ReadByte();
strncpy(toName, MSG_ReadString(),NAMESTRING);
toName[NAMESTRING]=NULL;
strncpy(fromName, MSG_ReadString(),NAMESTRING);
fromName[NAMESTRING]=NULL;
idx = GTH_FindPCByName(toName);
if (0 <= idx)
{
playerCharacter_t * pTaker=gcpTools->GetPlayerRecordPointer(idx);
if(NULL==pTaker) return;
MSG_BeginWriting(&netMessage);
MSG_Clear( &netMessage );
{
MSG_WriteByte(&netMessage, GSC_REPLYSUMMONS);
MSG_WriteByte(&netMessage, reply);
MSG_WriteString(&netMessage, fromName);
NET_SendMessage(&pTaker->sock, &netMessage);
}
MSG_EndWriting(&netMessage);
}
else
{
if (TRUE == g_config.isManager )
{
int fromMemberIdx = MSG_ReadByte();
MSG_BeginWriting(&netMessage);
MSG_Clear( &netMessage );
{
MSG_WriteByte(&netMessage, GSC_REPLYSUMMONS);
MSG_WriteByte(&netMessage, reply);
MSG_WriteString(&netMessage, toName);
MSG_WriteString(&netMessage, fromName);
for (int severidx=1; severidx < MAX_MEMBER_SERVER; severidx++)
{
if ( !g_memberServer[severidx].active ) continue;
if ( severidx == fromMemberIdx ) continue;
NET_SendUnreliableMessage(&g_memberServer[severidx].sock, &netMessage);
}
}
MSG_EndWriting(&netMessage);
}
}
}
开发者ID:gthgame,项目名称:gth,代码行数:53,代码来源:HelperManager.cpp
示例5: MSG_ReadShort
void CHelperManager::ProcessMessage_Reply_Helpers_Update ()
{
if ( g_config.gameServerNo != MSG_ReadByte () ) return;
int idx = MSG_ReadShort ();
playerCharacter_t* pTaker=gcpTools->GetPlayerRecordPointer(idx);
if(NULL==pTaker) return;
HelperEntry HelperEntries;
HelperEntries.level = MSG_ReadByte ();
HelperEntries.job = MSG_ReadByte ();
HelperEntries.worldIdx = MSG_ReadByte ();
strncpy ( HelperEntries.name, MSG_ReadString(),NAMESTRING);
HelperEntries.name[NAMESTRING]=NULL;
MSG_BeginWriting( &netMessage );
MSG_Clear( &netMessage );
{
MSG_WriteByte(&netMessage, EXTEND_SECOND);
MSG_WriteShort ( &netMessage, HELPER_SYSTEM );
MSG_WriteShort ( &netMessage, SC_LISTINFO_toAllPlayer);
MSG_WriteByte ( &netMessage, HelperEntries.level );
MSG_WriteByte ( &netMessage, HelperEntries.job );
MSG_WriteByte ( &netMessage, HelperEntries.worldIdx );
MSG_WriteString ( &netMessage, HelperEntries.name );
NET_SendMessage ( &pTaker->sock, &netMessage );
}
MSG_EndWriting(&netMessage);
}
开发者ID:gthgame,项目名称:gth,代码行数:33,代码来源:HelperManager.cpp
示例6: MSG_BeginWriting
void CDanBattleSys::SendBattleResult()
{
TEAM_ITOR iLoop;
int userIdx;
BYTE WinTeam;
MSG_BeginWriting( &netMessage );
MSG_Clear( &netMessage );
MSG_WriteByte( &netMessage, GSC_EXTEND );
MSG_WriteByte( &netMessage, GSC_DAN_BATTLE );
MSG_WriteByte( &netMessage, DANB_BATTLE_RESULT );
WinTeam=GetWinTeam();
MSG_WriteByte( &netMessage, WinTeam );
for (iLoop=m_BattleTeam[0].begin();iLoop!=m_BattleTeam[0].end();iLoop++)
{
userIdx=(*iLoop);
NET_SendMessage( &g_pc[userIdx].sock, &netMessage );
}
for (iLoop=m_BattleTeam[1].begin();iLoop!=m_BattleTeam[1].end();iLoop++)
{
userIdx=(*iLoop);
NET_SendMessage( &g_pc[userIdx].sock, &netMessage );
}
MSG_EndWriting( &netMessage );
}
开发者ID:gthgame,项目名称:gth,代码行数:32,代码来源:Dan.cpp
示例7: SendErrorCode
void CDanBattleFunc::SendGSM_SuggestResult(BYTE isallow)
{
LPREQUEST_RECORD pSuggest=g_pDanBattleManager->GetSuggester();
LPREQUEST_RECORD pRequest=static_cast<LPREQUEST_RECORD>(g_pDanBattleManager->GetRequestPointer(NULL));
if ( pRequest->ServerID >= MAX_PCS || pRequest->ServerID < 0)
return;
if (pSuggest==NULL)
{
SendErrorCode(&g_pc[pRequest->ServerID].sock,GSC_DAN_BATTLE,1,0);
return;
}
MSG_BeginWriting(&netMessage);
MSG_Clear( &netMessage );
MSG_WriteByte(&netMessage, GSC_EXTEND);
MSG_WriteByte(&netMessage, GSC_DAN_BATTLE);
MSG_WriteByte(&netMessage, DANB_SUGGEST_RESULT);
MSG_WriteByte(&netMessage, isallow);
NET_SendUnreliableMessage(&g_pc[pRequest->ServerID].sock, &netMessage);
MSG_EndWriting(&netMessage);
}
开发者ID:gthgame,项目名称:gth,代码行数:28,代码来源:Dan.cpp
示例8: MSG_BeginWriting
void CHelperManager::MemberList_Request_List_OtherServer ( playerCharacter_t* pHelper )
{
MSG_BeginWriting ( &netMessage );
MSG_Clear( &netMessage );
{
MSG_WriteByte(&netMessage, EXTEND_SECOND);
MSG_WriteShort(&netMessage, HELPER_SYSTEM);
MSG_WriteShort( &netMessage, SS_REQUESTMemberList_toServer);
MSG_WriteString ( &netMessage, pHelper->name );
MSG_WriteByte ( &netMessage, pHelper->tHelper.List.count );
MSG_WriteShort(&netMessage, pHelper->tHelper.List.mode);
for (int idx = 0; idx < pHelper->tHelper.List.count; idx++ )
{
MSG_WriteString ( &netMessage, pHelper->tHelper.List.Member[idx].id );
MSG_WriteString ( &netMessage, pHelper->tHelper.List.Member[idx].name );
MSG_WriteByte(&netMessage, pHelper->tHelper.List.Member[idx].bIsMatchHELPERandTACKER);
}
NET_SendUnreliableMessage ( &localSocket, &netMessage );
}
MSG_EndWriting(&netMessage);
}
开发者ID:gthgame,项目名称:gth,代码行数:25,代码来源:HelperManager.cpp
示例9: GTH_SendMessage_AddItemObject
void GTH_SendMessage_AddItemObject(itemObject_t *itemObject)
{
int i;
int idx;
GTH_GetPCListInValidRange(itemObject->worldIdx, itemObject->position);
if (g_zonePCListNumber < 1) return;
MSG_BeginWriting(&netMessage);
MSG_Clear( &netMessage );
{
MSG_WriteByte(&netMessage, GSC_ADDITEMOBJECT);
MSG_WriteShort(&netMessage, itemObject->idx);
MSG_WritePosition(&netMessage, itemObject->position);
MSG_WriteByte(&netMessage, itemObject->objectType);
if( itemObject->objectType == OBJECT_TYPE_ITEM )
{
MSG_WriteShort(&netMessage, itemObject->item.itemTableIdx);
} else if( itemObject->objectType == OBJECT_TYPE_PORTAL )
{
MSG_WriteShort(&netMessage, itemObject->portal.portalType);
}
for (i=0; i < g_zonePCListNumber; i++)
{
idx = g_zonePCList[i].idx;
if ( !g_pc[idx].ready ) continue;
NET_SendMessage(&g_pc[idx].sock, &netMessage);
}
}
MSG_EndWriting(&netMessage);
}
开发者ID:gthgame,项目名称:gth,代码行数:34,代码来源:net_item.cpp
示例10: MSG_BeginWriting
void CWeatherSystem::GTH_SendMessageEventSeting(int event)
{
if ( event < 0)
event = 0;
MSG_BeginWriting( &netMessage );
MSG_Clear( &netMessage );
{
MSG_WriteByte(&netMessage, EXTEND_SECOND);
MSG_WriteShort(&netMessage, WEATHER_SYSTEM );
MSG_WriteShort(&netMessage, CC_WEATHER_SYSTEM );
MSG_WriteByte(&netMessage, CC_WEATHER_SYSTEM_BROAD_CASTING_EVENT_SETING);
MSG_WriteByte(&netMessage, event);
NET_SendMessage(&gsSocket, &netMessage);
}
MSG_EndWriting(&netMessage);
if ( event == 0)
{
g_ifMng->AddChatMessage( g_LPACK.GetMassage(LPACK_TYPE_NORMAL2, 251), GTHCOLOR_SYSMESSAGE, g_LPACK.GetMessage(LPACK_TYPE_NORMAL,322));
}
else
{
g_ifMng->AddChatMessage( g_LPACK.GetMassage(LPACK_TYPE_NORMAL2, 252), GTHCOLOR_SYSMESSAGE, g_LPACK.GetMessage(LPACK_TYPE_NORMAL,322));
}
g_musicMng->PlaySample( g_soundMng->GetNormalSoundID( GTH_SOUND_ID_WARNING_2 ), GTH_SOUND_PLAY_ONCE );
}
开发者ID:gthgame,项目名称:gth,代码行数:31,代码来源:WeatherSystem.cpp
示例11: GTH_SendMessage_DestroyItem
void GTH_SendMessage_DestroyItem( playerCharacter_t *pc, int reply, int error, int itemIdx )
{
MSG_BeginWriting(&netMessage);
MSG_Clear( &netMessage );
{
MSG_WriteByte(&netMessage, GSC_REPLY_DESTROY_ITEM );
MSG_WriteByte(&netMessage, reply );
if( reply > 0 )
{
MSG_WriteShort(&netMessage, (int)pc->curChargeRA );
MSG_WriteShort(&netMessage, (int)pc->curChargeSA );
MSG_WriteShort(&netMessage, itemIdx );
MSG_WriteShort(&netMessage, pc->curItemWeight );
MSG_WriteShort(&netMessage, error);
}
else
{
MSG_WriteByte(&netMessage, error );
}
NET_SendMessage(&pc->sock, &netMessage);
}
MSG_EndWriting(&netMessage);
}
开发者ID:gthgame,项目名称:gth,代码行数:32,代码来源:net_item.cpp
示例12: GTH_SendMessage_AddInvItem
void GTH_SendMessage_AddInvItem( playerCharacter_t *pc, int reply, int error, item_t *item )
{
MSG_BeginWriting(&netMessage);
MSG_Clear( &netMessage );
{
MSG_WriteByte(&netMessage, GSC_ADDITEMINV);
MSG_WriteByte(&netMessage, reply);
if( reply )
{
MSG_WriteItem(&netMessage, item);
MSG_WriteByte(&netMessage, error);
}
else
{
MSG_WriteByte(&netMessage, error);
}
NET_SendMessage(&pc->sock, &netMessage);
}
MSG_EndWriting(&netMessage);
}
开发者ID:gthgame,项目名称:gth,代码行数:25,代码来源:net_item.cpp
示例13: GTH_SendMessage_ReplyGetInventoryItem
void GTH_SendMessage_ReplyGetInventoryItem(playerCharacter_t *pc, int reply, int error, int inventoryPos, int equipPos )
{
int itemIdx;
MSG_BeginWriting(&netMessage);
MSG_Clear( &netMessage );
{
MSG_WriteByte(&netMessage, GSC_REPLY_GETINVENTORYITEM);
if( reply > 0 )
{
MSG_WriteByte(&netMessage, reply);
MSG_WriteByte(&netMessage, inventoryPos);
MSG_WriteByte(&netMessage, equipPos);
if( reply == 5 )
{
MSG_WriteByte(&netMessage, pc->mouseInventory);
itemIdx = pc->inventory[inventoryPos];
MSG_WriteItem( &netMessage, &pc->item[itemIdx] );
MSG_WriteItem( &netMessage, &pc->item[pc->mouseInventory] );
}
}
else
{
MSG_WriteByte(&netMessage, reply);
MSG_WriteByte(&netMessage, error);
}
NET_SendMessage(&pc->sock, &netMessage);
}
MSG_EndWriting(&netMessage);
GTH_PC_Calculate( pc, PCINFO_BASIC );
}
开发者ID:gthgame,项目名称:gth,代码行数:34,代码来源:net_item.cpp
示例14: MSG_BeginWriting
int CPostFunc::GTH_SendMessage_PostSystem_ReceiveItems()
{
CPostManager::PostPackage_t* pPostPackage = NULL;
pPostPackage = g_cgv.myCharacterInfo->m_PostMng.GetOpenPost();
int OpenIdx = g_cgv.myCharacterInfo->m_PostMng.m_OpenPostIdx;
MSG_BeginWriting(&netMessage);
MSG_Clear( &netMessage );
{
MSG_WriteByte(&netMessage, CC_EXTEND );
MSG_WriteByte(&netMessage, CC_MAILBOX );
MSG_WriteByte(&netMessage, MAILBOX_RECEIVE_ITEMS );
MSG_WriteLong(&netMessage, OpenIdx );
NET_SendMessage(&gsSocket, &netMessage);
}
MSG_EndWriting( &netMessage );
return 1;
}
开发者ID:gthgame,项目名称:gth,代码行数:25,代码来源:PostFunc.cpp
示例15: strncpy
void CHelperManager::ProcessMessage_Reply_Helpers_List ()
{
if ( g_config.gameServerNo != MSG_ReadByte () ) return;
char czTempName[NAMESTRING+1];
strncpy(czTempName,MSG_ReadString(),NAMESTRING);
int idx = MSG_ReadShort ();
int count = MSG_ReadByte ();
int enumMode = static_cast<tagHelper::tagMemberList::enumMode>(MSG_ReadShort());
playerCharacter_t* pTaker=gcpTools->GetPlayerRecordPointer(idx);
if(NULL == pTaker) return;
if(NULL != strcmp(pTaker->name,czTempName)) return;
if(count < USERCOUNT || count > tagHelper::MAX_MEMBER) return;
HelperEntry HelperEntries[tagHelper::MAX_MEMBER];
for (int listmember = 0; listmember < count; listmember++ )
{
HelperEntries[listmember].level = MSG_ReadByte ();
HelperEntries[listmember].job = MSG_ReadByte ();
HelperEntries[listmember].worldIdx = MSG_ReadByte ();
strncpy (HelperEntries[listmember].name, MSG_ReadString (),NAMESTRING);
HelperEntries[listmember].name[NAMESTRING]=NULL;
HelperEntries[listmember].bsync= MSG_ReadByte ();
}
MSG_BeginWriting ( &netMessage );
MSG_Clear( &netMessage );
{
MSG_WriteByte(&netMessage, EXTEND_SECOND);
MSG_WriteShort( &netMessage, HELPER_SYSTEM );
MSG_WriteShort( &netMessage, SC_LIST_Res_toServer );
MSG_WriteByte( &netMessage, count);
MSG_WriteShort ( &netMessage, enumMode);
for ( int listmember = 0; listmember < count; listmember++)
{
MSG_WriteByte ( &netMessage, HelperEntries[listmember].level );
MSG_WriteByte ( &netMessage, HelperEntries[listmember].job );
MSG_WriteByte ( &netMessage, HelperEntries[listmember].worldIdx );
MSG_WriteString ( &netMessage, HelperEntries[listmember].name );
MSG_WriteByte(&netMessage, HelperEntries[listmember].bsync);
}
NET_SendMessage ( &pTaker->sock, &netMessage );
}
MSG_EndWriting(&netMessage);
}
开发者ID:gthgame,项目名称:gth,代码行数:56,代码来源:HelperManager.cpp
示例16: GTH_SendMessageRequestItemSyncItem
void GTH_SendMessageRequestItemSyncItem()
{
MSG_BeginWriting(&netMessage);
MSG_Clear( &netMessage );
{
MSG_WriteByte(&netMessage, EXTEND_SECOND);
MSG_WriteShort(&netMessage, ITEM_EXTEND_SYSTEM);
MSG_WriteShort(&netMessage, REQUEST_ITEM_SYNC_TIME);
NET_SendMessage(&gsSocket, &netMessage);
}
MSG_EndWriting(&netMessage);
}
开发者ID:gthgame,项目名称:gth,代码行数:12,代码来源:ItemExtendSystemFunc.cpp
示例17: MSG_BeginWriting
void CHelperManager_Encoder::SendMessage_Helper_StackOpen(playerCharacter_t* pHelper)
{
MSG_BeginWriting(&netMessage);
MSG_Clear( &netMessage );
{
MSG_WriteByte(&netMessage, EXTEND_SECOND);
MSG_WriteShort ( &netMessage, HELPER_SYSTEM );
MSG_WriteShort(&netMessage, SC_STACK_OPEN_Req_toPlayer);
NET_SendMessage(&pHelper->sock, &netMessage);
}
MSG_EndWriting(&netMessage);
}
开发者ID:gthgame,项目名称:gth,代码行数:12,代码来源:CHelperManager_Encoder.cpp
示例18: MSG_BeginWriting
void CGs_To_Cc::Send(playerCharacter_t* pPlayer,int SystemType,int mainType, int subType)
{
MSG_BeginWriting( &netMessage );
MSG_Clear( &netMessage );
{
MSG_WriteByte(&netMessage, EXTEND_SECOND);
MSG_WriteShort(&netMessage, SystemType);
MSG_WriteShort(&netMessage, mainType);
MSG_WriteShort(&netMessage, subType);
NET_SendMessage(&pPlayer->sock, &netMessage);
}
MSG_EndWriting(&netMessage);
}
开发者ID:gthgame,项目名称:gth,代码行数:13,代码来源:Gs_To_Cc.cpp
示例19: MSG_BeginWriting
void CGMCtrl::TransmitePacket_cs_request_AUTHstate(void)
{
MSG_BeginWriting(&netMessage);
MSG_Clear( &netMessage );
{
MSG_WriteByte(&netMessage, EXTEND_SECOND);
MSG_WriteShort(&netMessage, GMsystem);
MSG_WriteShort(&netMessage, tagExtendSecondPacket_GMsystem::GMsystem_NProtect);
MSG_WriteShort(&netMessage, tagExtendSecondPacket_GMsystem::tagNProtect::cs_request_AUTHstate);
NET_SendMessage(&gsSocket, &netMessage);
}
MSG_EndWriting( &netMessage );
}
开发者ID:gthgame,项目名称:gth,代码行数:13,代码来源:CGMCtrl.cpp
示例20: GTH_SendMessage_Request_WorldChangeUseItem
void GTH_SendMessage_Request_WorldChangeUseItem(WorldChangeSystem *pWorldChangeSystem)
{
MSG_BeginWriting( &netMessage);
MSG_Clear( &netMessage );
{
MSG_WriteByte ( &netMessage, CC_EXTEND);
MSG_WriteByte ( &netMessage, CC_WORLD_CHANGE);
MSG_WriteByte ( &netMessage, GTH_REQUEST_USE_ITEM);
MSG_WriteByte ( &netMessage, pWorldChangeSystem->m_SaveInvenPos);
NET_SendMessage ( &gsSocket, &netMessage);
}
MSG_EndWriting( &netMessage );
}
开发者ID:gthgame,项目名称:gth,代码行数:13,代码来源:WorldChangeFunc.cpp
注:本文中的MSG_BeginWriting函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论