• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# MessageDestination类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: MessageHeader

 public MessageHeader(MessageDestination destination, int messageType, IntPtr floatValue, IntPtr entity)
 {
     this.Destination = destination;
     this.MessageType = messageType;
     this.FloatValue = floatValue;
     this.Entity = entity;
 }
开发者ID:txdv,项目名称:sharpmod,代码行数:7,代码来源:Message.cs


示例2: SendTutorStateMessage

 public static void SendTutorStateMessage(MessageDestination destination, IntPtr floatValue, IntPtr playerEntity, TutorStateMessage val)
 {
     SendTutorStateMessage(destination, floatValue,playerEntity );
 }
开发者ID:txdv,项目名称:sharpmod,代码行数:4,代码来源:MessageGeneratedFunctions.cs


示例3: Message

            public Message(PureMessage parent, string name, MessageType type, MessageDestination dest, string message)
            {
                this.parent = parent;

                this.name = name;
                this.type = type;
                this.dest = dest;
                this.message = message;
            }
开发者ID:ra4king,项目名称:PureMessage,代码行数:9,代码来源:PureMessage.cs


示例4: MessageBeginPost

		internal static void MessageBeginPost(MessageDestination destination, int messageType, IntPtr floatValue, IntPtr playerEntity)
		{
			if (firstMessage) {
				// there is no event which intercepts between
				// the registering part and the first message (weaponlist in cstrike case)
				// so we need to initialize the game mode before the first message so we can
				// intercept this valuable information
				switch (Server.GameDirectory) {
				case "cstrike":
					CounterStrike.CounterStrike.Init();
					break;
				}
				firstMessage = false;
			}

			#if DEBUG
			messageInformation = new MessageInformation(destination, messageType, floatValue, playerEntity);
			messageInformation.CallTimeBegin = DateTime.Now;
			#endif

			message_header = new MessageHeader(destination, messageType, floatValue, playerEntity);
			message_elements = new List<object>();

			MetaModEngine.SetResult(MetaResult.Handled);
			}
开发者ID:txdv,项目名称:sharpmod,代码行数:25,代码来源:MetaMod.cs


示例5: SendWeapPickupMessage

 public static void SendWeapPickupMessage(MessageDestination destination, WeapPickupMessage val)
 {
     SendWeapPickupMessage(destination, IntPtr.Zero, IntPtr.Zero , val.WeaponID);
 }
开发者ID:txdv,项目名称:sharpmod,代码行数:4,代码来源:MessageGeneratedFunctions.cs


示例6: SendWeaponListMessage

 public static void SendWeaponListMessage(MessageDestination destination, IntPtr floatValue, IntPtr playerEntity, WeaponListMessage val)
 {
     SendWeaponListMessage(destination, floatValue,playerEntity , val.WeaponName, val.PrimaryAmmoID, val.PrimaryAmmoMaxAmount, val.SecondaryAmmoID, val.SecondaryAmmoMaxAmount, val.SlotID, val.NumberInSlot, val.WeaponID, val.Flags);
 }
开发者ID:txdv,项目名称:sharpmod,代码行数:4,代码来源:MessageGeneratedFunctions.cs


示例7: SendVGUIMenuMessage

        public static void SendVGUIMenuMessage(MessageDestination destination, IntPtr floatValue, IntPtr playerEntity, byte MenuID, short KeyBitSum, char Time, byte MultiPart, string Name)
        {
            Message.Begin(destination, Message.GetUserMessageID("VGUIMenu"), floatValue, playerEntity);

            Message.WriteByte(MenuID);
            Message.WriteShort(KeyBitSum);
            Message.WriteChar(Time);
            Message.WriteByte(MultiPart);
            Message.WriteString(Name);
            Message.End();
        }
开发者ID:txdv,项目名称:sharpmod,代码行数:11,代码来源:MessageGeneratedFunctions.cs


示例8: SendTutorTextMessage

 public static void SendTutorTextMessage(MessageDestination destination, IntPtr floatValue, IntPtr playerEntity, TutorTextMessage val)
 {
     SendTutorTextMessage(destination, floatValue,playerEntity , val.Unknown1, val.Unknown2, val.Unknown3, val.Unknown4, val.Unknown5);
 }
开发者ID:txdv,项目名称:sharpmod,代码行数:4,代码来源:MessageGeneratedFunctions.cs


示例9: SendVoiceMaskMessage

 public static void SendVoiceMaskMessage(MessageDestination destination, VoiceMaskMessage val)
 {
     SendVoiceMaskMessage(destination, IntPtr.Zero, IntPtr.Zero , val.AudiblePlayersIndexbitSum, val.ServerBannedPlayersIndexBitSum);
 }
开发者ID:txdv,项目名称:sharpmod,代码行数:4,代码来源:MessageGeneratedFunctions.cs


示例10: SendViewModeMessage

        public static void SendViewModeMessage(MessageDestination destination, IntPtr floatValue, IntPtr playerEntity)
        {
            Message.Begin(destination, Message.GetUserMessageID("ViewMode"), floatValue, playerEntity);

            Message.End();
        }
开发者ID:txdv,项目名称:sharpmod,代码行数:6,代码来源:MessageGeneratedFunctions.cs


示例11: Begin

        /// <summary>
        /// Begins with the sending of a message.
        /// </summary>
        /// <param name="destination">
        /// The destination of a message. <see cref="MessageDestination"/>
        /// </param>
        /// <param name="msg_type">
        /// The integer value of the message type. <see cref="System.Int32"/>
        /// </param>
        /// <param name="flValue">
        /// A float value? <see cref="IntPtr"/>
        /// </param>
        /// <param name="player">
        /// If send to a specific player, the player entity has to be supplied here <see cref="IntPtr"/>
        /// </param>
        public static void Begin(MessageDestination destination, int messageType, IntPtr floatValue, IntPtr playerEntity)
        {
            #if DEBUG
            messageInformation = new MessageInformation(destination, messageType, floatValue, playerEntity);
            messageInformation.CallTimeBegin = DateTime.Now;
            #endif

            MetaModEngine.engineFunctions.MessageBegin(destination, messageType, floatValue, playerEntity);
            count = 0;
        }
开发者ID:txdv,项目名称:sharpmod,代码行数:25,代码来源:Message.cs


示例12: MessageInformation

 public MessageInformation(MessageDestination destination, int messageType, IntPtr val, IntPtr playerEdict)
 {
     MessageDestination = destination;
     MessageType = messageType;
     Value = val;
     PlayerEdict = playerEdict;
     Arguments = new List<MessageArgument>();
 }
开发者ID:txdv,项目名称:sharpmod,代码行数:8,代码来源:Message.cs


示例13: PlayerSpawnMessage

 public PlayerSpawnMessage(PureMessage parent, string name, MessageType type, MessageDestination dest, string message)
     : base(parent, name, type, dest, message)
 {
     this.triggerOnce = true;
 }
开发者ID:ra4king,项目名称:PureMessage,代码行数:5,代码来源:PureMessage.cs


示例14: PlayerJoinMessage

 public PlayerJoinMessage(PureMessage parent, string name, MessageType type, MessageDestination dest, string message)
     : base(parent, name, type, dest, message)
 {
 }
开发者ID:ra4king,项目名称:PureMessage,代码行数:4,代码来源:PureMessage.cs


示例15: SendTrainMessage

 public static void SendTrainMessage(MessageDestination destination, TrainMessage val)
 {
     SendTrainMessage(destination, IntPtr.Zero, IntPtr.Zero , val.Speed);
 }
开发者ID:txdv,项目名称:sharpmod,代码行数:4,代码来源:MessageGeneratedFunctions.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# MessageDialog类代码示例发布时间:2022-05-24
下一篇:
C# MessageCollection类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap