コード例 #1
0
ファイル: MapGrid.cs プロジェクト: pigmon/DFWEditor
 public void SetEstate(EState _eState)
 {
     eState = _eState;
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: pigmon/DFWEditor
 private void updateArea(int iStart, int jStart, int iEnd, int Jend)
 {
     if (G.operation == 1 && G.bAreaBrush)
     {
         for (int i = iStart; i <= iEnd; i++)
         {
             for (int j = jStart; j <= Jend; j++)
             {
                 G.currentMap.tiles[i, j] = G.currentTexture.getCurrentIndex();
             }
         }
     }
     else if (G.operation == 3)
     {
         for (int i = iStart; i <= iEnd; i++)
         {
             for (int j = jStart; j <= Jend; j++)
             {
                 EState eState = new EState(i, j, G.currentSection, G.currentBasePrice);
                 EStateControl ec = new EStateControl();
                 ec.data = eState;
                 MainPanel.Controls.Add(ec);
                 ec.Location = new Point(i * G.tileSize, j * G.tileSize);
                 G.currentMap.gamePlayes[i, j] = 3;
                 G.currentMap.eStates.Add(eState);
             }
         }
     }
 }
コード例 #3
0
ファイル: GridControl.cs プロジェクト: pigmon/DFWEditor
 public void SetEstate(EState _eState)
 {
     if (data != null)
         data.SetEstate(_eState);
 }