예제 #1
0
        public static ModelsPath GetModelPath(IContext context, RawNode node)
        {
            string path;
            Random random = null;

            if (node.IsDictionary() && node.CheckKey("path"))
            {
                path = node.GetString("path");

                if (node.CheckKey("random"))
                {
                    random = GetModelPath(context, node.GetString("random"), null).GetSelf <Random>();
                }
            }
            else
            {
                path = node.ToString();
            }

            return(GetResult(context, path, random));
        }