コード例 #1
0
ファイル: BattleBuilding.cs プロジェクト: nydehi/divinity
        public override void OnAfterDelete()
        {
            base.OnAfterDelete();

            if (_Region != null)
            {
                _Region.Unregister();
            }
            _Region = null;

            if (_CheckTimer != null)
            {
                _CheckTimer.Stop();
            }
        }
コード例 #2
0
ファイル: BattleBuilding.cs プロジェクト: nydehi/divinity
        public void UpdateRect()
        {
            if (_Region != null)
            {
                _Region.Unregister();
                _Region = null;
            }

            if (_Rect.Start != Point2D.Zero && _Rect.End != Point2D.Zero && this.Map != Map.Internal)
            {
                Point3D thisLoc = this.GetWorldLocation();
                Region  parent  = Region.Find(thisLoc, this.Map);

                if (parent == this.Map.DefaultRegion)
                {
                    parent = null;
                }

                _Region = new BattleBuildingRegion(this, parent, _Rect, thisLoc, this.Map);
            }
        }
コード例 #3
0
        public void UpdateRect()
        {
            if (_Region != null)
            {
                _Region.Unregister();
                _Region = null;
            }

            if (_Rect.Start != Point2D.Zero && _Rect.End != Point2D.Zero && this.Map != Map.Internal)
            {
                Point3D thisLoc = this.GetWorldLocation();
                Region parent = Region.Find(thisLoc, this.Map);

                if (parent == this.Map.DefaultRegion)
                    parent = null;

                _Region = new BattleBuildingRegion(this, parent, _Rect, thisLoc, this.Map);
            }
        }
コード例 #4
0
        public override void OnAfterDelete()
        {
            base.OnAfterDelete();

            if (_Region != null)
                _Region.Unregister();
            _Region = null;

            if (_CheckTimer != null)
                _CheckTimer.Stop();
        }