Inheritance: Parsed.Object, INamedContent
示例#1
0
文件: Story.cs 项目: tomkail/ink
 public void AddExternal(ExternalDeclaration decl)
 {
     if (externals.ContainsKey (decl.name)) {
         Error ("Duplicate EXTERNAL definition of '"+decl.name+"'", decl, false);
     } else {
         externals [decl.name] = decl;
     }
 }
示例#2
0
 public void AddExternal(ExternalDeclaration decl)
 {
     if (externals.ContainsKey(decl.name))
     {
         Error("Duplicate EXTERNAL definition of '" + decl.name + "'", decl, false);
     }
     else
     {
         externals [decl.name] = decl;
     }
 }
示例#3
0
文件: Divert.cs 项目: blueloveTH/ink
        void CheckExternalArgumentValidity(Story context)
        {
            string externalName          = target.firstComponent;
            ExternalDeclaration external = null;
            var found = context.externals.TryGetValue(externalName, out external);

            System.Diagnostics.Debug.Assert(found, "external not found");

            int externalArgCount = external.argumentNames.Count;
            int ownArgCount      = 0;

            if (arguments != null)
            {
                ownArgCount = arguments.Count;
            }

            //if (ownArgCount != externalArgCount) {
            //    Error ("incorrect number of arguments sent to external function '" + externalName + "'. Expected " + externalArgCount + " but got " + ownArgCount);
            //}
        }