Exemplo n.º 1
0
        internal CameraValueModifier(CameraValueBase owner, CameraState state, ModifierTypes type, double amount, bool autoRemove, long autoRemoveDelay)
        {
            this.Owner           = owner;
            this.State           = state;
            this.Type            = type;
            this.Amount          = amount;
            this.AutoRemove      = autoRemove;
            this.AutoRemoveDelay = autoRemoveDelay;

            if (this.State != null)
            {
                this.Priority = this.State.Priority;
            }
            else
            {
                this.Priority = -1000000;
            }
        }
        internal CameraValueModifier(CameraValueBase owner,
                                     CameraState state,
                                     ModifierTypes type,
                                     double amount,
                                     bool autoRemove,
                                     long autoRemoveDelay)
        {
            Owner           = owner;
            State           = state;
            Type            = type;
            Amount          = amount;
            AutoRemove      = autoRemove;
            AutoRemoveDelay = autoRemoveDelay;

            if (State != null)
            {
                Priority = State.Priority;
            }
            else
            {
                Priority = -1000000;
            }
        }