mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-27 10:05:41 -05:00
44 lines
No EOL
1.4 KiB
Haxe
44 lines
No EOL
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);
|
|
}
|
|
} |