ng release and blank controls
This commit is contained in:
21
source/io/newgrounds/components/MedalComponent.hx
Normal file
21
source/io/newgrounds/components/MedalComponent.hx
Normal file
@@ -0,0 +1,21 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user