本文整理汇总了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);
}
}
示例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);
}
示例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;
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
示例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);
}
}
示例8: UsersWithRights
internal static void UsersWithRights(GameClientMessageHandler handler)
{
handler.UsersWithRights();
}
示例9: UnbanUser
internal static void UnbanUser(GameClientMessageHandler handler)
{
handler.UnbanUser();
}
示例10: UpdateEventInfo
internal static void UpdateEventInfo(GameClientMessageHandler handler)
{
handler.UpdateEventInfo();
}
示例11: GetRoomBannedUsers
internal static void GetRoomBannedUsers(GameClientMessageHandler handler)
{
handler.GetBannedUsers();
}
示例12: SetRelationship
internal static void SetRelationship(GameClientMessageHandler handler)
{
handler.SetRelationship();
}
示例13: GetGroupForums
internal static void GetGroupForums(GameClientMessageHandler handler)
{
handler.GetGroupForums();
}
示例14: EjectFurni
internal static void EjectFurni(GameClientMessageHandler handler)
{
handler.EjectFurni();
}
示例15: GetRelationships
internal static void GetRelationships(GameClientMessageHandler handler)
{
handler.GetRelationships();
}