using System;
using System.Windows.Forms;
using System.IO;

namespace FalloutClient {
    static class Program {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args) {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            if (args.Length == 1 && args[0] == "-debugedit") {
                Application.Run(new DebugEditor(new EditorConnection()));
            } else {
                MessageBox.Show("The debug editor can only be run from the game.\n" +
                    "Use the key assigned to the DebugEditorKey option in ddraw.ini to run the debugger.",
                    "sfall Debug Editor", MessageBoxButtons.OK, MessageBoxIcon.Stop);
            }
        }
    }

    enum DataTypeSend {
        SetGlobal = 0,
        SetMapVar = 1,
        RetrieveCritter = 2,
        SetCritter = 3,
        SetSGlobal = 4,
        GetArray = 9,
        SetArray = 10,
        GetLocal = 11,
        SetLocal = 12,
        Exit = 254,
        RedrawGame = 255
    }
}
