1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-10 08:44:47 +00:00
Funkin/source/io/newgrounds/components/MedalComponent.hx
2020-11-01 14:16:22 -05:00

21 lines
530 B
Haxe

package io.newgrounds.components;
import io.newgrounds.objects.events.Result;
import io.newgrounds.Call;
import io.newgrounds.NGLite;
class MedalComponent extends Component {
public function new(core:NGLite):Void { super(core); }
public function unlock(id:Int):Call<MedalUnlockResult> {
return new Call<MedalUnlockResult>(_core, "Medal.unlock", true, true)
.addComponentParameter("id", id);
}
public function getList():Call<MedalListResult> {
return new Call<MedalListResult>(_core, "Medal.getList");
}
}