Ejemplo 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;
 }
Ejemplo n.º 2
0
        public static LuaFunction getTableFunction(LuaTable luaTable, string name)
        {
            object obj = luaTable.rawget(name);

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