c# - DynamicLua - Few Q's
Posted: Sat Apr 23, 2016 8:28 pm
Hi !
Hoping to ask advice of anyone that has more experience working with DynamicLua or similar library in c# - i think more c# related though...
Persistence / referencing to or from other class/namespace:-
From what i Understand about dynamic types (which is zero) they do not persist, and only accessible locally, within the class, so ive been creating some methods, to perform whatevr queries.
If i wanted to access the same Lua instance from other namespace/class without passing that class as a reference how would it work. If i created new dynamic Lua instance in the same application, would it connect to the initial tables created from other instance, or is it completely seperate ? what is best way ofdoing this, without explicitly creating a new instance of the class that contains that main instance - when i make that class static, or the dynamic lua instance itself - it doesnt seem to work (seems to be only way i know that could make it accessible throughout app)
Seperately:- is there any preferred method,to get some manner of printout of the entire Lua DB, tables/funcs etc. something like a json structure,or just list of tables/func names etc, (Iterate through, use GetDynamicMemberNames ?)
Finally:- why have i seen some cases of guys creating main tables through a new Object[] rather than just stringName of table, or in Queries, referencing the main Table/Root Through testing isee that it can be used to create hierarchy, but is there any other reason im not aware of
Google failed, & not much activity on DynLua page, so any help appreciated
Cheers
Hoping to ask advice of anyone that has more experience working with DynamicLua or similar library in c# - i think more c# related though...
Persistence / referencing to or from other class/namespace:-
From what i Understand about dynamic types (which is zero) they do not persist, and only accessible locally, within the class, so ive been creating some methods, to perform whatevr queries.
If i wanted to access the same Lua instance from other namespace/class without passing that class as a reference how would it work. If i created new dynamic Lua instance in the same application, would it connect to the initial tables created from other instance, or is it completely seperate ? what is best way ofdoing this, without explicitly creating a new instance of the class that contains that main instance - when i make that class static, or the dynamic lua instance itself - it doesnt seem to work (seems to be only way i know that could make it accessible throughout app)
Seperately:- is there any preferred method,to get some manner of printout of the entire Lua DB, tables/funcs etc. something like a json structure,or just list of tables/func names etc, (Iterate through, use GetDynamicMemberNames ?)
Finally:- why have i seen some cases of guys creating main tables through a new Object[] rather than just stringName of table, or in Queries, referencing the main Table/Root Through testing isee that it can be used to create hierarchy, but is there any other reason im not aware of
Google failed, & not much activity on DynLua page, so any help appreciated
Cheers