Esempio n. 1
0
 public static LuaFunction getTableFunction(LuaTable luaTable, string name)
 {
     object obj2 = luaTable.rawget(name);
     if (obj2 is LuaFunction)
     {
         return (LuaFunction) obj2;
     }
     return null;
 }
        public static LuaFunction getTableFunction(LuaTable luaTable, string name)
        {
            object obj = luaTable.rawget(name);

            if (obj is LuaFunction)
            {
                return((LuaFunction)obj);
            }
            return(null);
        }
Esempio n. 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);
            }
        }
Esempio n. 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;
 }