本文整理汇总了C#中ClientGCMsgProtobuf类的典型用法代码示例。如果您正苦于以下问题:C#ClientGCMsgProtobuf类的具体用法?C#ClientGCMsgProtobuf怎么用?C#ClientGCMsgProtobuf使用的例子?这里精选的类代码示例或许可以为您提供帮助。
示例1:OnNotification
voidOnNotification(ClientGCMsgProtobuf
msg,uintgcAppId)
{
stringitemName=GetItemName(msg.Body.item_def_index,gcAppId);
if(msg.Body.was_destruction)
{
IRC.Instance.SendToTag("gc-tf2","{0}GCitemnotification:{1}hasdestroyedtheir{2}!",Steam.Instance.GetAppName(gcAppId),msg.Body.user_name,itemName);
}
else
{
IRC.Instance.SendToTag("gc-tf2","{0}GCitemnotification:{1}justreceiveda{2}!",Steam.Instance.GetAppName(gcAppId),msg.Body.user_name,itemName);
}
}
原文链接:http://www.jxszl.com/biancheng/C/556765.html