Skip to content

[REQ] Add property for class from SLB2 #25

@GoogleCodeExporter

Description

@GoogleCodeExporter
With SLB2 it was possible to add access to a member variable by using the 
property method. I.e.

SLB::Class<ivec4>(IVEC4_LUA_TABLE_NAME, luaProgram->slbManager())
  .constructor()
  .set("length", &ivec3::length)
  .property("x", &ivec4::x)
  .property("y", &ivec4::y)
  .property("z", &ivec4::z)
  .property("w", &ivec4::w);

I can't find what the equivalent way of doing this in SLB3 would be.

Original issue reported on code.google.com by jus...@shadowpsi.net on 10 Jan 2014 at 2:26

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions