public static void LoadLibrary(LuaInstance lua)
        {
            LuaTable table = new LuaTable();
            table["log"] = new Action<int, string>(log);

            lua.Register("aero", table);
        }
Exemple #2
0
        public static void LoadLibrary(LuaInstance lua)
        {
            LuaTable table = new LuaTable();

            table["log"] = new Action <int, string>(log);

            lua.Register("aero", table);
        }
Exemple #3
0
        public static void LoadLibrary(LuaInstance lua)
        {
            LuaTable table = new LuaTable();

            table["read"]      = new Func <LuaStream, object>(read);
            table["write"]     = new Action <LuaStream, object>(write);
            table["readable"]  = new Func <LuaStream, bool>(readable);
            table["writeable"] = new Func <LuaStream, bool>(writeable);

            lua.Register("stream", table);
        }
        public static void LoadLibrary(LuaInstance lua)
        {
            LuaTable table = new LuaTable();
            table["read"] = new Func<LuaStream, object>(read);
            table["write"] = new Action<LuaStream, object>(write);
            table["readable"] = new Func<LuaStream, bool>(readable);
            table["writeable"] = new Func<LuaStream, bool>(writeable);

            lua.Register("stream", table);
        }