mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-08 15:56:04 +00:00
44 lines
1.4 KiB
Haxe
44 lines
1.4 KiB
Haxe
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);
|
|
}
|
|
} |