WohlSoft / LunaLua

LunaLua - LunaDLL with Lua, is a free extension mod for SMBX 1.3 game engine, core of the X2 project.
https://codehaus.moe/
GNU General Public License v3.0
33 stars 12 forks source link

Add support for editor IPC entity connections #62

Closed SolaceEllery closed 9 months ago

SolaceEllery commented 1 year ago

This is Part 2/2 of the pull requests done to add support for editor to LunaLua IPC connections regarding sending a block/NPC/BGO to the game.

The following was also added to support this:

Misc.getEditorPlacedItem() - Gets the current entity from the editor as a JSON string (Can be parsed via the lunajson library). If nothing was found, it'll return a "nil" string.

If this pull request is accepted, LunaLua will get the entity from the current commits of Moondust.

SolaceEllery commented 1 year ago

I just found out that X2's fork of the editor is not pulling from the current version of Moondust, so I'll have to make a third-parter pull request adding the editor changes to the fork sooner or later. Whenever I get that taken care of, hopefully this pull request will be worth it