Example #1
0
        protected void OnInstantCmd(VoxelDataState state, int beginCmdCode, Cmd cmd, int delay, int duration)
        {
            State = state;

            if (beginCmdCode != CmdCode.Nop)
            {
                Cmd beginCmd = cmd.Clone();
                beginCmd.Code = beginCmdCode;

                beginCmd.Duration = delay;
                m_commandsQueue.Enqueue(beginCmd);
            }

            cmd.Duration = duration;
            m_commandsQueue.Enqueue(cmd);
        }