Re: [luabind] Giving different scripts to objects of the same class...
Brought to you by:
arvidn,
daniel_wallin
From: <hmm...@op...> - 2003-12-16 23:55:16
|
> now my problem is for different monsters... > As my LUA script for the one monster example defines a lua function > named monter_function, function that I will call from C++, at each > tick of action, I now don't see how I could make two monsters have > different scripts... > And moreover, my purpose is to have n-monsters with n possibly > different scripts. Have you looked into the luabind feature of deriving a bound c++ class using lua? I think that will solve all the problems you mentioned. |