GameEntities.RTSMine.OnTick C# (CSharp) Method

OnTick() protected method

Overridden from Engine.EntitySystem.Entity.OnTick().
protected OnTick ( ) : void
return void
        protected override void OnTick()
        {
            base.OnTick();

            //Add money to faction
            if (BuildedProgress == 1)
            {
                if (RTSFactionManager.Instance != null)
                {
                    if (Intellect != null && Intellect.Faction != null)
                    {
                        RTSFactionManager.FactionItem factionItem = RTSFactionManager.Instance.
                            GetFactionItemByType(Intellect.Faction);

                        if (factionItem != null)
                            factionItem.Money += Type.MoneyPerSecond * TickDelta;
                    }
                }
            }

            //Rotation propeller
            //if( BuildedProgress == 1 )
            //{
            //float angle = -Entities.Instance.TickTime * 500;
            //AttachedObjects[ 3 ].RotationOffset = new Angles( 0, 0, angle ).ToQuat();
            //}
        }