newgrounds io shit incoming

This commit is contained in:
Cameron Taylor
2020-10-31 20:42:14 -07:00
parent b16b463dad
commit 321a7d22f9
35 changed files with 3049 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
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);
}
}