Пример #1
0
        public Form1()
        {
            TileCache.Initialize();

            this.DoubleBuffered = true;
            InitializeComponent();

            m_mega_sessions       = new List <Layer>();
            m_active_mega_session = null;
            m_thread_pool         = new List <Thread>();

            m_dragging   = false;
            m_mouse_x    = 0;
            m_mouse_y    = 0;
            m_map_offset = new Vector2i();

            Console.WriteLine("Looking for sessions.");
            m_sessions = SessionCrawler.CrawlSessions("C:\\Users\\DesktopMeanz\\Salem\\map\\game.salemthegame.com");
            Console.WriteLine("Found " + m_sessions.Count + " sessions.");

            Analyze();

            //Grab a session and render it
            pnlMap.Paint     += PnlMap_Paint;
            pnlMap.MouseDown += PnlMap_MouseDown;
            pnlMap.MouseUp   += PnlMap_MouseUp;
            pnlMap.MouseMove += PnlMap_MouseMove;

            //Exit hook
            Application.ApplicationExit += Application_ApplicationExit;
        }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public BitmapData GetBitmapData()
 {
     return(TileCache.FetchImageData(TileFilePath));
 }
Пример #3
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public Bitmap GetBitmap()
 {
     return(TileCache.FetchImage(TileFilePath));
 }