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

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

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

            lua.Register("aero", table);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 4
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);
        }