cli/src/updates/UpdateFactory.hx
package updates;
import updates.kha.KhaUpdate;
class UpdateFactory {
public static function get(id:String):Update {
var u:Update = null;
switch (id) {
case "openfl":
u = new HaxeLibUpdate(["haxeui-openfl", "openfl", "lime"]);
case "nme":
u = new HaxeLibUpdate(["haxeui-openfl", "nme"]);
case "html5":
u = new HaxeLibUpdate(["haxeui-html5"]);
case "hxwidgets":
u = new HaxeLibUpdate(["haxeui-hxwidgets", "hxWidgets", "hxcpp"]);
case "pixijs":
u = new HaxeLibUpdate(["haxeui-pixijs", "pixijs"]);
case "kha":
u = new KhaUpdate();
case "winforms":
u = new HaxeLibUpdate(["haxeui-winforms", "hxcs"]);
}
return u;
}
}