1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-09 00:04:42 +00:00
Funkin/source/io/newgrounds/components/EventComponent.hx

16 lines
451 B
Haxe
Raw Normal View History

2020-11-01 19:16:22 +00:00
package io.newgrounds.components;
import io.newgrounds.objects.events.Result.LogEventResult;
import io.newgrounds.NGLite;
class EventComponent extends Component {
public function new (core:NGLite){ super(core); }
public function logEvent(eventName:String):Call<LogEventResult> {
return new Call<LogEventResult>(_core, "Event.logEvent")
.addComponentParameter("event_name", eventName)
.addComponentParameter("host", _core.host);
}
}