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


C# MessageDestination类代码示例

本文整理汇总了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;未经允许,请勿转载。