示例#1
0
        public IEnumerable <string> ListParameters()
        {
            checkReady();

            int count;

            Utilities.checkResult(_desc.getParameterDescriptionCount(out count));

            var descList = new LinkedList <FMOD.Studio.PARAMETER_DESCRIPTION>();
            var nameList = new LinkedList <string>();

            for (int i = 0; i < count; i++)
            {
                FMOD.Studio.PARAMETER_DESCRIPTION pDesc;
                Utilities.checkResult(_desc.getParameterDescriptionByIndex(i, out pDesc));

                if (pDesc.type == FMOD.Studio.PARAMETER_TYPE.GAME_CONTROLLED)
                {
                    nameList.AddLast(pDesc.name);
                }
            }

            return(nameList);
        }