当前位置: 首页>>代码示例>>C++>>正文


C++ OutputMessage类代码示例

本文整理汇总了C++中OutputMessage的典型用法代码示例。如果您正苦于以下问题:C++ OutputMessage类的具体用法?C++ OutputMessage怎么用?C++ OutputMessage使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了OutputMessage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: sendCloseContainer

void ProtocolGame::sendCloseContainer(int containerId)
{
    OutputMessage oMsg;
    oMsg.addU8(Proto::ClientCloseContainer);
    oMsg.addU8(containerId);
    send(oMsg);
}
开发者ID:AndreFaramir,项目名称:otclient,代码行数:7,代码来源:protocolgamesend.cpp

示例2: sendLeaveChannel

void ProtocolGame::sendLeaveChannel(int channelId)
{
    OutputMessage msg;
    msg.addU8(Proto::ClientLeaveChannel);
    msg.addU16(channelId);
    send(msg);
}
开发者ID:Cayan,项目名称:otclient,代码行数:7,代码来源:protocolgamesend.cpp

示例3: sendRequestQuestLine

void ProtocolGame::sendRequestQuestLine(int questId)
{
    OutputMessage msg;
    msg.addU8(Proto::ClientRequestQuestLine);
    msg.addU16(questId);
    send(msg);
}
开发者ID:Cayan,项目名称:otclient,代码行数:7,代码来源:protocolgamesend.cpp

示例4: sendRemoveVip

void ProtocolGame::sendRemoveVip(uint playerId)
{
    OutputMessage oMsg;
    oMsg.addU8(Proto::ClientRemoveBuddy);
    oMsg.addU32(playerId);
    send(oMsg);
}
开发者ID:AndreFaramir,项目名称:otclient,代码行数:7,代码来源:protocolgamesend.cpp

示例5: sendGetQuestLine

void ProtocolGame::sendGetQuestLine(int questId)
{
    OutputMessage oMsg;
    oMsg.addU8(Proto::ClientGetQuestLine);
    oMsg.addU16(questId);
    send(oMsg);
}
开发者ID:AndreFaramir,项目名称:otclient,代码行数:7,代码来源:protocolgamesend.cpp

示例6: sendAddVip

void ProtocolGame::sendAddVip(const std::string& name)
{
    OutputMessage oMsg;
    oMsg.addU8(Proto::ClientAddBuddy);
    oMsg.addString(name);
    send(oMsg);
}
开发者ID:AndreFaramir,项目名称:otclient,代码行数:7,代码来源:protocolgamesend.cpp

示例7: sendOpenChannel

void ProtocolGame::sendOpenChannel(int channelId)
{
    OutputMessage oMsg;
    oMsg.addU8(Proto::ClientOpenChannel);
    oMsg.addU16(channelId);
    send(oMsg);
}
开发者ID:AndreFaramir,项目名称:otclient,代码行数:7,代码来源:protocolgamesend.cpp

示例8: sendInviteToParty

void ProtocolGame::sendInviteToParty(uint creatureId)
{
    OutputMessage oMsg;
    oMsg.addU8(Proto::ClientInviteToParty);
    oMsg.addU32(creatureId);
    send(oMsg);
}
开发者ID:AndreFaramir,项目名称:otclient,代码行数:7,代码来源:protocolgamesend.cpp

示例9: notifyAll

    static void notifyAll( Common< Package > &common ) {
        common.progress();
        OutputMessage msg;
        msg.tag( Tag::Done );

        Daemon::instance().sendAll( msg );
    }
开发者ID:spito,项目名称:dp,代码行数:7,代码来源:workerPing.hpp

示例10: sendExcludeFromOwnChannel

void ProtocolGame::sendExcludeFromOwnChannel(const std::string& name)
{
    OutputMessage msg;
    msg.addU8(Proto::ClientExcludeFromOwnChannel);
    msg.addString(name);
    send(msg);
}
开发者ID:Cayan,项目名称:otclient,代码行数:7,代码来源:protocolgamesend.cpp

示例11: sendOpenPrivateChannel

void ProtocolGame::sendOpenPrivateChannel(const std::string& receiver)
{
    OutputMessage msg;
    msg.addU8(Proto::ClientOpenPrivateChannel);
    msg.addString(receiver);
    send(msg);
}
开发者ID:Cayan,项目名称:otclient,代码行数:7,代码来源:protocolgamesend.cpp

示例12: sendInviteToOwnChannel

void ProtocolGame::sendInviteToOwnChannel(const std::string& name)
{
    OutputMessage msg;
    msg.addU8(Proto::ClientInviteToOwnChannel);
    msg.addString(name);
    send(msg);
}
开发者ID:Cayan,项目名称:otclient,代码行数:7,代码来源:protocolgamesend.cpp

示例13: sendPassLeadership

void ProtocolGame::sendPassLeadership(uint creatureId)
{
    OutputMessage msg;
    msg.addU8(Proto::ClientPassLeadership);
    msg.addU32(creatureId);
    send(msg);
}
开发者ID:Cayan,项目名称:otclient,代码行数:7,代码来源:protocolgamesend.cpp

示例14: sendJoinParty

void ProtocolGame::sendJoinParty(uint creatureId)
{
    OutputMessage msg;
    msg.addU8(Proto::ClientJoinParty);
    msg.addU32(creatureId);
    send(msg);
}
开发者ID:Cayan,项目名称:otclient,代码行数:7,代码来源:protocolgamesend.cpp

示例15: sendRevokeInvitation

void ProtocolGame::sendRevokeInvitation(uint creatureId)
{
    OutputMessage msg;
    msg.addU8(Proto::ClientRevokeInvitation);
    msg.addU32(creatureId);
    send(msg);
}
开发者ID:Cayan,项目名称:otclient,代码行数:7,代码来源:protocolgamesend.cpp


注:本文中的OutputMessage类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。