billyquith / ponder

C++ reflection library with Lua binding, and JSON and XML serialisation.
http://billyquith.github.io/ponder/
Other
647 stars 96 forks source link

Per type user data #98

Closed billyquith closed 6 years ago

billyquith commented 6 years ago

In v3.0 tags have been removed, however, it is useful to be able to markup the type data. Add ability to associate user data with types, e.g.

Class::declare<HasUserData>()
    .function("foo", &Cls::foo)( UserData("value", 3) )
    .property("value", &Cls::getValue)
     (
         UserData("value", 2.5f),
         UserData("value2", "xyz")
     );
billyquith commented 6 years ago

First pass done.