_dotnet events
This commit is contained in:
@@ -872,6 +872,13 @@ void VisualScriptExecutor::ProcessGroupFunction(Box* boxBase, Node* node, Value&
|
||||
|
||||
// Find event binding callback
|
||||
auto eventBinder = ScriptingEvents::EventsTable.TryGet(Pair<ScriptingTypeHandle, StringView>(eventType, eventName));
|
||||
if (!eventBinder)
|
||||
{
|
||||
const StringAnsiView eventNameAnsi(node->Values[1]);
|
||||
auto managedEvent = eventType.GetClass()->GetEvent(eventNameAnsi.GetText());
|
||||
//eventBinder = (void(**)(ScriptingObject*, void*, bool))managedEvent;
|
||||
}
|
||||
|
||||
if (!eventBinder)
|
||||
{
|
||||
LOG(Error, "Cannot bind to missing event {0} from type {1}.", eventName, eventTypeName);
|
||||
|
||||
Reference in New Issue
Block a user