User Tools

Site Tools


dev:epic

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dev:epic [2022/10/27 16:43] lmcraedev:epic [2023/05/29 21:04] (current) – removed lmcrae
Line 1: Line 1:
-Here are my notes I use when I have to work on this system.  
-  * [[dev:tolua|Internals]] 
- 
-Here is how a C++ class can call into it's lua instance. I think this is where I was confused by what you were asking. Sorry, I don't know why it wasn't apparent to me. 
- 
-**1)** I have a LuaObject that has access to it's Rtti/metadata. I also have my own header parser that generates this code. So I have access to the actual class name such as "Forge::Light". 
-**2)** Every class has a lua table that is created as bindings are being loaded, that represent that clas sin lua.  
- 
- 
-Here is a stripped down class that shows the basics of how the system calls a C++ function from lua.  
- 
-**1)** Header files are marked up using comments to expose/export classes and functions. 
- 
-{{:dev:epic_tolua_header.png}} 
- 
-**2)** Here is the generated cpp that gets added to the project. 
-{{:dev:epic_tolua_codegen.png|}} 
- 
  
/home/admin/domains/wiki.d20dungeons.com/public_html/data/attic/dev/epic.1666889027.txt.gz · Last modified: (external edit)