Home > other >  The following code, how to use lua can write simple some.
The following code, how to use lua can write simple some.

Time:09-23

The local dic1=CCDictionary: create ()
Dic1: setObject (CCInteger: create (tonumber (39123), "1")
Dic1: setObject (CCBool: create (true), "2")
LuaController: comFunc (" LoadRes dic1)


Is probably LuaController have a LoadRes export method, his argument is a dictionary, the dictionary is the specific values,

CodePudding user response:

The practice of our project is to save a lua object, and then use josn_encode into a string, and decode in c + +, but it should be a lot of trouble XD, this should be simple enough

CodePudding user response:

Simple enough
  • Related