This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include "lua/lua.h" | |
#include "lua/lauxlib.h" | |
#include <cassert> | |
namespace gle { | |
//! Wrapper base class - no need to initiate those. | |
class LuaObjectBase { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "LuaObject.hpp" | |
#include <gl/GL.h> | |
/** | |
* lDraw - draw. Library | |
**/ | |
namespace gle { | |
namespace lDraw { | |
// drawRect(x, y, w, h, z, color1, c2 = nil, c3 = nil, c4 = nil) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "lgColor.hpp" | |
namespace gle { | |
namespace lgColor { | |
COLOR_CLASS& checkColor(lua_State* L, int idx) { | |
return *gle::getObject<COLOR_CLASS>(L, idx).object(); | |
} | |
COLOR_CLASS optColor(lua_State* L, int idx, Gosu::Color defaultColor) { | |
if (lua_isnoneornil(L, idx)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local jelly_console | |
local MOD = class() | |
function MOD:__init() | |
radiant.events.listen(radiant, 'radiant:modules_loaded', self, self.on_loaded) | |
end | |
function MOD:on_loaded(...) | |
-- Use rawget to avoid strict lua getting all upset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using System.IO; | |
using System.Diagnostics; | |
namespace RP.Unwrp2016 | |
{ | |
class Program | |
{ |