"景先生毕设|www.jxszl.com

C# ChatTypeEnum类代码示例

2023-12-29 17:43编辑: www.jxszl.com景先生毕设
本文整理汇总了C#中ChatTypeEnum类的典型用法代码示例。如果您正苦于以下问题:C#ChatTypeEnum类的具体用法?C#ChatTypeEnum怎么用?C#ChatTypeEnum使用的例子?这里精选的类代码示例或许可以为您提供帮助。 示例1:SimChat protectedvoidSimChat(byte[]message,ChatTypeEnumtype,intchannel,Vector3fromPos,stringfromName, UUIDfromID,boolfromAgent,boolbroadcast) { OSChatMessageargs=newOSChatMessage(); args.Message=Utils.BytesToString(message); args.Channel=channel; args.Type=type; args.Position=fromPos; args.SenderUUID=fromID; args.Scene=this; if(fromAgent) { ScenePresenceuser=GetScenePresence(fromID); if(user!=null) args.Sender=user.ControllingClient; } else { SceneObjectPartobj=GetSceneObjectPart(fromID); args.SenderObject=obj; } args.From=fromName; //args. if(broadcast) EventManager.TriggerOnChatBroadcast(this,args); else EventManager.TriggerOnChatFromWorld(this,args); }
原文链接:http://www.jxszl.com/biancheng/C/556736.html