Advertisement
Guest User

PacketHolder

a guest
Apr 22nd, 2014
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.88 KB | None | 0 0
  1. // Copyright (C) Paul Becker, - All Rights Reserved
  2. // Unauthorized copying of this file, via any medium is strictly prohibited
  3. // Proprietary and confidential
  4. // Written by Paul Becker <paul.becker1@gmx.de>, 22:06
  5.  
  6. #region usings
  7.  
  8. using System;
  9. using System.Collections.Generic;
  10. using SeraphimServer.Network.Clientpacket;
  11. using SeraphimServer.Network.Serverpacket;
  12.  
  13. #endregion
  14.  
  15. namespace SeraphimServer.Network
  16. {
  17.     public class PacketHolder
  18.     {
  19.         public static Dictionary<Type, int> ServerPackets = new Dictionary<Type, int>(10);
  20.         public static Dictionary<int, Type> ClientPackets = new Dictionary<int, Type>(10);
  21.  
  22.  
  23.         public static void Load()
  24.         {
  25.             ClientPackets.Add(0x01, typeof (CM_ATTACK));
  26.             ServerPackets.Add(typeof (SM_ANY_INFO), 0xF0);
  27.             ServerPackets.Add(typeof (SM_FOG_LIGHT), 0x02);
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement