コード例 #1
0
 public GameData(Engine engine)
 {
     Spawns = new GameSpawns(this);
     Player = null;
     Target = null;
     Engine = engine;
 }
コード例 #2
0
ファイル: FFXIMapImageEditor.cs プロジェクト: stsy/mappy
      public void OnEngage(fMap Window) {
         if (engaged)
            throw new Exception("Editor already engaged.");
         if (!(Window.Instance is IFFXIGameContainer))
            throw new Exception("Instance does not support FFXI.");
         if (!(Window.Instance is IFFXIMapImageContainer))
            throw new Exception("Instance does not support FFXI image maps.");

         engaged = true;
         window = Window;
         engine = Window.Engine;
         window.Engine.Game.Highlighted = null;
         icontainer = window.Instance as IFFXIGameContainer;
         imap = Window.Instance as IFFXIMapImageContainer;

         if (ui == null)
            ui = new FFXIMapImageEditorUI(this);
         ui.Show(window);
         ui.Left = window.Left;
         ui.Top = window.Bottom;
         ui.Width = window.Width;
         engine.MapAlternativeImage = null;

         BuildMapList();
         ui.updateMapInfo();
         icontainer.ZoneChanged += new EventHandler(icontainer_ZoneChanged);
      }
コード例 #3
0
ファイル: FFXIGameInstance.cs プロジェクト: stsy/mappy
        public FFXIGameInstance(Engine engine, Config config, string FilePath, string ModuleName)
            : base(engine, config, ModuleName)
        {
            m_ServerIDLookup = new Dictionary<uint, FFXISpawn>();
            m_zoneNameShort = new List<string>();
            lastZone = 0;

            FFXIGameInstance.LoadSignatures(config);
            m_imagemaps = new FFXIImageMaps(Program.MapFileExt, FilePath);
        }
コード例 #4
0
ファイル: MapData.cs プロジェクト: stsy/mappy
      //====================================================================================================
      // Constructor
      //====================================================================================================
      public MapData(Engine engine) {
         m_engine = engine;
         m_lines = new List<MapLine>();
         m_labels = new List<MapLabel>();
         m_hunts = new MapHunts(this);
         m_replacements = new MapReplacements(this);
         m_suspendDirty = false;

         m_hunts.Updated += new MapHuntEvent(m_hunts_Updated);
         m_replacements.Updated += new MapReplacementEvent(m_replacements_Updated);

         Clear();
      }
コード例 #5
0
ファイル: GameInstance.cs プロジェクト: stsy/mappy
 public GameInstance(Engine engine, Config config, string moduleName) {
    this.engine = engine;
    this.config = config;
    this.m_module = moduleName;
    //note that process loading is done either after the instance is constructed, or during the subclass construction
 }