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


C# GameClientMessageHandler类代码示例

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


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

示例1: HandlePacket

 internal static void HandlePacket(GameClientMessageHandler handler, ClientMessage message)
 {
     if (handlers.ContainsKey(message.Id))
     {
         StaticRequestHandler currentHandler = (StaticRequestHandler)handlers[message.Id];
         currentHandler.Invoke(handler);
     }
 }
开发者ID:habb0,项目名称:Bfly,代码行数:8,代码来源:StaticClientMessageHandler.cs

示例2: HandlePacket

 public static void HandlePacket(GameClientMessageHandler handler, ClientMessage message)
 {
     if (StaticClientMessageHandler.handlers.ContainsKey(message.Id))
     {
        // Logging.WriteLine(message.ToString(), ConsoleColor.Green);
         StaticClientMessageHandler.StaticRequestHandler staticRequestHandler = StaticClientMessageHandler.handlers[message.Id];
         staticRequestHandler(handler);
         return;
     }
  //   Logging.WriteLine(message.ToString(), ConsoleColor.Red);
 }
开发者ID:BjkGkh,项目名称:Mercury,代码行数:11,代码来源:StaticClientMessageHandler.cs

示例3: HandlePacket

        public static void HandlePacket(GameClientMessageHandler handler, ClientMessage message)
        {
            if (StaticClientMessageHandler.handlers.ContainsKey(message.Id))
            {
#if DEBUG
                Logging.WriteLine("Packet id  = " + message.Id, ConsoleColor.Green);
#endif
                StaticClientMessageHandler.StaticRequestHandler staticRequestHandler = StaticClientMessageHandler.handlers[message.Id];
                staticRequestHandler(handler);
                return;
            }
        }
开发者ID:kessiler,项目名称:habboServer,代码行数:12,代码来源:StaticClientMessageHandler.cs

示例4: HandlePacket

 public static void HandlePacket(GameClientMessageHandler handler, ClientMessage message)
 {
     if (handlers.ContainsKey(message.Id))
     {
         Logging.WriteLine("Handled Header: " + message.ToString(), ConsoleColor.Green);
         StaticRequestHandler currentHandler = (StaticRequestHandler)handlers[message.Id];
         currentHandler.Invoke(handler);
     }
     else
     {
         if (System.Diagnostics.Debugger.IsAttached)
         {
             Logging.WriteLine("Unhandled Header: " + message.ToString(), ConsoleColor.Red);
         }
     }
 }
开发者ID:BjkGkh,项目名称:07052014,代码行数:16,代码来源:StaticClientMessageHandler.cs

示例5: HandlePacket

 public static void HandlePacket(GameClientMessageHandler handler, ClientMessage message)
 {
     if (handlers.ContainsKey(message.Id))
     {
         Logging.WriteLine("Cargado -> " + message.ToString(), ConsoleColor.White);
         StaticRequestHandler currentHandler = (StaticRequestHandler)handlers[message.Id];
         currentHandler.Invoke(handler);
     }
     else
     {
         if (System.Diagnostics.Debugger.IsAttached)
         {
             Logging.WriteLine("Error -> " + message.ToString(), ConsoleColor.Magenta);
         }
     }
 }
开发者ID:BjkGkh,项目名称:Plus-Jamal,代码行数:16,代码来源:StaticClientMessageHandler.cs

示例6: HandlePacket

 internal static void HandlePacket(GameClientMessageHandler handler, ClientMessage message)
 {
     if (handlers.ContainsKey(message.Id))
     {
         if (FirewindEnvironment.IsDebugging)
             Logging.LogDebug("Event handled => " + message.Id + " ");
         StaticRequestHandler currentHandler = (StaticRequestHandler)handlers[message.Id];
         currentHandler.Invoke(handler);
     }
     else
     {
         if (!FirewindEnvironment.IsDebugging/* || unknownPackets.Contains(message.Id)*/)
             return;
         unknownPackets.Add(message.Id);
         Logging.LogDebug("Unknown packet ID: " + message.Id);
     }
 }
开发者ID:TheNaked,项目名称:Firewind,代码行数:17,代码来源:StaticClientMessageHandler.cs

示例7: HandlePacket

        internal static void HandlePacket(GameClientMessageHandler handler, ClientMessage message, int messageID)
        {
			if (messageID < 0 || messageID >= MAX_PACKET_HEADER)
				return;

			if (handlers[messageID] != null)
            {
                if (ButterflyEnvironment.isDebugging)
                {
                    Console.WriteLine("Handling ID: " + messageID);
                    //Console.WriteLine("Handling ID: " + messageID + " > " + (InputCode)messageID);
                }
				handlers[messageID].Invoke(handler);
            }
            else if (ButterflyEnvironment.isDebugging)
            {
                Console.WriteLine("Unknown packet ID: " + messageID);
            }
        }
开发者ID:BjkGkh,项目名称:R106,代码行数:19,代码来源:StaticClientMessageHandler.cs

示例8: UsersWithRights

		internal static void UsersWithRights(GameClientMessageHandler handler)
		{
			handler.UsersWithRights();
		}
开发者ID:BjkGkh,项目名称:Mercury,代码行数:4,代码来源:SharedPacketLib.cs

示例9: UnbanUser

		internal static void UnbanUser(GameClientMessageHandler handler)
		{
			handler.UnbanUser();
		}
开发者ID:BjkGkh,项目名称:Mercury,代码行数:4,代码来源:SharedPacketLib.cs

示例10: UpdateEventInfo

		internal static void UpdateEventInfo(GameClientMessageHandler handler)
		{
			handler.UpdateEventInfo();
		}
开发者ID:BjkGkh,项目名称:Mercury,代码行数:4,代码来源:SharedPacketLib.cs

示例11: GetRoomBannedUsers

		internal static void GetRoomBannedUsers(GameClientMessageHandler handler)
		{
			handler.GetBannedUsers();
		}
开发者ID:BjkGkh,项目名称:Mercury,代码行数:4,代码来源:SharedPacketLib.cs

示例12: SetRelationship

		internal static void SetRelationship(GameClientMessageHandler handler)
		{
			handler.SetRelationship();
		}
开发者ID:BjkGkh,项目名称:Mercury,代码行数:4,代码来源:SharedPacketLib.cs

示例13: GetGroupForums

 internal static void GetGroupForums(GameClientMessageHandler handler)
 {
     handler.GetGroupForums();
 }
开发者ID:BjkGkh,项目名称:Mercury,代码行数:4,代码来源:SharedPacketLib.cs

示例14: EjectFurni

		internal static void EjectFurni(GameClientMessageHandler handler)
		{
			handler.EjectFurni();
		}
开发者ID:BjkGkh,项目名称:Mercury,代码行数:4,代码来源:SharedPacketLib.cs

示例15: GetRelationships

		internal static void GetRelationships(GameClientMessageHandler handler)
		{
			handler.GetRelationships();
		}
开发者ID:BjkGkh,项目名称:Mercury,代码行数:4,代码来源:SharedPacketLib.cs


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