ng release and blank controls

This commit is contained in:
Brandon
2020-11-01 14:16:22 -05:00
parent 968a001a36
commit 5fa4bc458e
65 changed files with 3468 additions and 126 deletions

View File

@@ -0,0 +1,44 @@
package io.newgrounds.components;
import io.newgrounds.objects.events.Result;
import io.newgrounds.NGLite;
class LoaderComponent extends Component {
public function new (core:NGLite){ super(core); }
public function loadAuthorUrl(redirect:Bool = false):Call<ResultBase> {
return new Call<ResultBase>(_core, "Loader.loadAuthorUrl")
.addComponentParameter("host", _core.host)
.addComponentParameter("redirect", redirect, true);
}
public function loadMoreGames(redirect:Bool = false):Call<ResultBase> {
return new Call<ResultBase>(_core, "Loader.loadMoreGames")
.addComponentParameter("host", _core.host)
.addComponentParameter("redirect", redirect, true);
}
public function loadNewgrounds(redirect:Bool = false):Call<ResultBase> {
return new Call<ResultBase>(_core, "Loader.loadNewgrounds")
.addComponentParameter("host", _core.host)
.addComponentParameter("redirect", redirect, true);
}
public function loadOfficialUrl(redirect:Bool = false):Call<ResultBase> {
return new Call<ResultBase>(_core, "Loader.loadOfficialUrl")
.addComponentParameter("host", _core.host)
.addComponentParameter("redirect", redirect, true);
}
public function loadReferral(redirect:Bool = false):Call<ResultBase> {
return new Call<ResultBase>(_core, "Loader.loadReferral")
.addComponentParameter("host", _core.host)
.addComponentParameter("redirect", redirect, true);
}
}