| 22 | namespace Star { |
| 23 | |
| 24 | ScriptPane::ScriptPane(UniverseClientPtr client, Json config, EntityId sourceEntityId) : BaseScriptPane(config) { |
| 25 | auto& root = Root::singleton(); |
| 26 | auto assets = root.assets(); |
| 27 | |
| 28 | m_client = std::move(client); |
| 29 | m_sourceEntityId = sourceEntityId; |
| 30 | |
| 31 | m_script.addCallbacks("player", LuaBindings::makePlayerCallbacks(m_client->mainPlayer().get())); |
| 32 | m_script.addCallbacks("status", LuaBindings::makeStatusControllerCallbacks(m_client->mainPlayer()->statusController())); |
| 33 | m_script.addCallbacks("celestial", LuaBindings::makeCelestialCallbacks(m_client.get())); |
| 34 | } |
| 35 | |
| 36 | void ScriptPane::displayed() { |
| 37 | auto world = m_client->worldClient(); |
nothing calls this directly
no test coverage detected