Esempio n. 1
0
 public GameEventHandlers(Demo demo)
 {
     m_Demo = demo;
     m_GameEventDescriptors = new Dictionary<int, GameEventDescriptor>();
     m_GameEventHandlers = new Dictionary<String, OnGameEvent>();
     m_UsedGameEventDescriptors = new List<GameEventDescriptor>();
 }
Esempio n. 2
0
        public PacketHandlers(Demo demo)
        {
            m_Demo = demo;
            m_PacketHandlers = new Dictionary<PacketType, OnPacketReceived>();

            m_PacketHandlers.Add(PacketType.NET_NOP, new OnPacketReceived(NOP));
            m_PacketHandlers.Add(PacketType.NET_Disconnect, new OnPacketReceived(Disconnect));
            m_PacketHandlers.Add(PacketType.NET_File, new OnPacketReceived(File));
            m_PacketHandlers.Add(PacketType.NET_SplitScreenUser, new OnPacketReceived(SplitScreenUser));
            m_PacketHandlers.Add(PacketType.NET_Tick, new OnPacketReceived(Tick));
            m_PacketHandlers.Add(PacketType.NET_StringCmd, new OnPacketReceived(StringCommand));
            m_PacketHandlers.Add(PacketType.NET_SetConVar, new OnPacketReceived(SetConsoleVariable));
            m_PacketHandlers.Add(PacketType.NET_SignonState, new OnPacketReceived(SignOnState));
            m_PacketHandlers.Add(PacketType.SVC_ServerInfo, new OnPacketReceived(ServerInformation));
            m_PacketHandlers.Add(PacketType.SVC_SendTable, new OnPacketReceived(SendTable));
            m_PacketHandlers.Add(PacketType.SVC_ClassInfo, new OnPacketReceived(ClassInformation));
            m_PacketHandlers.Add(PacketType.SVC_SetPause, new OnPacketReceived(SetPause));
            m_PacketHandlers.Add(PacketType.SVC_CreateStringTable, new OnPacketReceived(CreateStringTable));
            m_PacketHandlers.Add(PacketType.SVC_UpdateStringTable, new OnPacketReceived(UpdateStringTable));
            m_PacketHandlers.Add(PacketType.SVC_VoiceInit, new OnPacketReceived(VoiceInitialization));
            m_PacketHandlers.Add(PacketType.SVC_Print, new OnPacketReceived(Print));
            m_PacketHandlers.Add(PacketType.SVC_Sounds, new OnPacketReceived(Sounds));
            m_PacketHandlers.Add(PacketType.SVC_SetView, new OnPacketReceived(SetView));
            m_PacketHandlers.Add(PacketType.SVC_FixAngle, new OnPacketReceived(FixAngle));
            m_PacketHandlers.Add(PacketType.SVC_CrosshairAngle, new OnPacketReceived(CrosshairAngle));
            m_PacketHandlers.Add(PacketType.SVC_BSPDecal, new OnPacketReceived(BSPDecal));
            m_PacketHandlers.Add(PacketType.SVC_SplitScreen, new OnPacketReceived(SplitScreen));
            m_PacketHandlers.Add(PacketType.SVC_UserMessage, new OnPacketReceived(UserMessage));
            m_PacketHandlers.Add(PacketType.SVC_EntityMessage, new OnPacketReceived(EntityMessage));
            m_PacketHandlers.Add(PacketType.SVC_GameEvent, new OnPacketReceived(GameEvent));
            m_PacketHandlers.Add(PacketType.SVC_PacketEntities, new OnPacketReceived(PacketEntities));
            m_PacketHandlers.Add(PacketType.SVC_TempEntities, new OnPacketReceived(TemporaryEntities));
            m_PacketHandlers.Add(PacketType.SVC_Prefetch, new OnPacketReceived(Prefetch));
            m_PacketHandlers.Add(PacketType.SVC_Menu, new OnPacketReceived(Menu));
            m_PacketHandlers.Add(PacketType.SVC_GameEventList, new OnPacketReceived(GameEventList));
            m_PacketHandlers.Add(PacketType.SVC_GetCvarValue, new OnPacketReceived(GetCvarValue));
            m_PacketHandlers.Add(PacketType.SVC_PaintmapData, new OnPacketReceived(PrintMapData));
            m_PacketHandlers.Add(PacketType.SVC_CmdKeyValues, new OnPacketReceived(CommandKeyValues));
            m_PacketHandlers.Add(PacketType.SVC_EncryptedData, new OnPacketReceived(EncryptedData));
        }
Esempio n. 3
0
        static unsafe void Main(string[] args)
        {
            string[] demoNames = new string[]
            {
                "match730_003055903399716323362_1318544347_124.dem",
                "match730_003054457037267140615_0829811286_124.dem",
                "match730_003032734507875696666_1565145978_122.dem",
                "match730_003033648601470337053_0282015483_124.dem",
                "match730_003036935284391411716_1614996432_122.dem",
                "ESLOneCologne-GF-nip-vs-fnatic-inferno.dem",
                "match730_003056092021795061796_0806705774_123.dem"
            };

            /*for (int i = 0; i < demoNames.Length; i++)
            {
                Console.WriteLine("-----SSSSSSSSSSSSSSS-----");
                Console.WriteLine(demoNames[i]);

                string demoPath = String.Format(@"C:\Program Files (x86)\Steam\SteamApps\common\Counter-Strike Global Offensive\csgo\replays\{0}", demoNames[i]);

                Demo demo = new Demo(demoPath);

                Console.WriteLine("-----EEEEEEEEEEEEEEE-----");
                Console.WriteLine();
            }*/

            string demoDirectory = @"C:\Program Files (x86)\Steam\SteamApps\common\Counter-Strike Global Offensive\csgo\replays\";
            string demoPath = Path.Combine(demoDirectory, demoNames[6]);

            Demo demo = new Demo(demoPath);

            GeneralStats generalStats = new GeneralStats(demo);

            demo.GameObservers.Add(generalStats);

            demo.Parse();

            Console.ReadLine();
        }
 public GameObserverCollection(Demo demo)
 {
     m_Demo = demo;
     m_Values = new List<GameObserver>();
 }
Esempio n. 5
0
 public EntityCollection(Demo demo)
 {
     m_Demo = demo;
     m_Values = new Dictionary<int, Entity>();
 }
 public ServerClassCollection(Demo demo)
 {
     m_Demo = demo;
 }
 public DataTableCollection(Demo demo)
 {
     m_Demo = demo;
     m_Values = new List<DataTable>();
 }
        public StringTableCollection(Demo demo)
        {
            m_Demo = demo;

            m_Values = new Dictionary<String, StringTable>();
        }
Esempio n. 9
0
 public PlayerCollection(Demo demo)
 {
     m_Demo = demo;
     m_Players = new List<Player>();
 }