コード例 #1
0
 public static LuaFunction getTableFunction(LuaTable luaTable, string name)
 {
     object obj2 = luaTable.rawget(name);
     if (obj2 is LuaFunction)
     {
         return (LuaFunction) obj2;
     }
     return null;
 }
コード例 #2
0
        public static LuaFunction getTableFunction(LuaTable luaTable, string name)
        {
            object obj = luaTable.rawget(name);

            if (obj is LuaFunction)
            {
                return((LuaFunction)obj);
            }
            return(null);
        }
コード例 #3
0
        /*
         *  Gets the function called name from the provided table,
         * returning null if it does not exist
         */
        public static LuaFunction getTableFunction(LuaTable luaTable, string name)
        {
            object funcObj = luaTable.rawget(name);

            if (funcObj is LuaFunction)
            {
                return((LuaFunction)funcObj);
            }
            else
            {
                return(null);
            }
        }
コード例 #4
0
 /*
  *  Gets the function called name from the provided table,
  * returning null if it does not exist
  */
 public static LuaFunction getTableFunction(LuaTable luaTable, string name)
 {
     object funcObj = luaTable.rawget(name);
     if (funcObj is LuaFunction)
         return (LuaFunction)funcObj;
     else
         return null;
 }