1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-29 00:08:11 +00:00
Funkin/source/io/newgrounds/components/GatewayComponent.hx

25 lines
575 B
Haxe
Raw Normal View History

2020-11-01 03:42:14 +00:00
package io.newgrounds.components;
import io.newgrounds.objects.events.Result;
import io.newgrounds.NGLite;
class GatewayComponent extends Component {
public function new (core:NGLite){ super(core); }
public function getDatetime():Call<GetDateTimeResult> {
return new Call<GetDateTimeResult>(_core, "Gateway.getDatetime");
}
public function getVersion():Call<GetVersionResult> {
return new Call<GetVersionResult>(_core, "Gateway.getVersion");
}
public function ping():Call<PingResult> {
return new Call<PingResult>(_core, "Gateway.ping");
}
}