private void OnCellClickedEvent(Int16 X, Int16 Z)
 {
     if (this.OnCellClicked != null)
     {
         CellArgs e = new CellArgs(X, Z);
         this.OnCellClicked(this, e);
     }
 }
Пример #2
0
        private void pickingService_OnCellClicked(Object o, CellArgs e)
        {
            this.canDrawTapCell = true;
            Int16 index = Convert.ToInt16(e.Z + e.X * (MAP_WIDTH - 1));     //There are only 69x69 cells. Don't mess them with the number of vertices

            this.currentCell      = this.cells[index];
            this.cellDrawTapTimer = LIMIT_TO_DRAW_TAP;
            this.tappedCellColor  = INITIAL_COLOR;

            this.FillSelectionCellVertices();
            this.SelectActionOnClicked(e.X, e.Z); Debug.WriteLine(e.X + " " + e.Z + " " + this.currentCell.state);
        }