| 731 | } |
| 732 | |
| 733 | Coral::ManagedObject* ScriptingEngineNet::GetEntityScript(const Entity& entity) |
| 734 | { |
| 735 | if (!HasEntityScriptInstance(entity)) |
| 736 | { |
| 737 | std::string name = entity.GetComponent<NameComponent>().Name; |
| 738 | Logger::Log(name); |
| 739 | Logger::Log("Failed to get entity .Net script instance, doesn't exist", ".net", CRITICAL); |
| 740 | return nullptr; |
| 741 | } |
| 742 | |
| 743 | return &entityToManagedObjects[entity.GetID()]; |
| 744 | } |
| 745 | |
| 746 | bool ScriptingEngineNet::HasEntityScriptInstance(const Entity& entity) |
| 747 | { |
no test coverage detected