Show / Hide Table of Contents

    Custom Actions

    To create a new action that can be used within Quantum Console, simply create a class that implements ICommandAction.

    Examples

    using QFSW.QC;
    
    public class WaitOneSecond : ICommandAction
    {
        private float _start;
    
        public bool IsFinished => Time.time > _start + 1;
        public bool StartsIdle => true;
    
        public void Start(ActionContext context)
        {
            _start = Time.time;
        }
    
        public void Finalize(ActionContext context) { }
    }
    
    Quantum Console by QFSW
    Back to top