Lua

Swig Starter Kit 0.0.1

I just put up the first release of a new project, Swig Starter Kit, on google code.

The Swig Starter Kit starts with the sample C++ class:

class Script_Interface
{
  public:
    Script_Interface();
    ~Script_Interface();
 
    int get_a_value();
};

And shows how you can go about utilizing that C++ class from Lua:

require ('SwigStarterKit');
 
var = SwigStarterKit.Script_Interface();
print (var:get_a_value());

Why Lua?

I friend of mine recently asked me what I thought of Lua. It is, after all, the first language that I chose to integrate with the rewrite of the Crate Game Engine. The language itself, the syntax and structure, I am somewhat indifferent about. However, I am interested in it for other reasons:

Syndicate content