Esempio n. 1
0
        // (arg0 : NodeTYpe) (arg1 : OutputId) (arg2 : Command)
        public int ExecuteCommand(string[] arg)
        {
            if (arg == null)
            {
                return(-1);
            }
            if (arg.Length == 0)
            {
                return(-1);
            }
            int returnValue = -1;

            if (arg[0] == "TerrainLayer" || arg[0] == "All")
            {
            }
            else
            {
                if (arg.Length <= 1)
                {
                    return(-1);
                }

                int outputId = TC.OutputNameToOutputID(arg[1]);
                if (outputId == -1)
                {
                    for (int i = 0; i < 6; i++)
                    {
                        returnValue = layerGroups[i].ExecuteCommand(arg);
                    }
                }
                else
                {
                    returnValue = layerGroups[outputId].ExecuteCommand(arg);
                }
            }

            return(returnValue);
        }