[update] add CacheStorage; improve PresetFrame

This commit is contained in:
2020-02-19 17:53:17 +03:00
parent ad0afc1324
commit 20adb3d634
14 changed files with 143 additions and 56 deletions

View File

@@ -1,9 +1,12 @@
package ru.m;
@:enum abstract Platform(String) from String to String {
enum abstract Platform(String) from String to String {
var ANDROID = "android";
var LINUX = "linux";
var WINDOWS = "windows";
var FLASH = "flash";
var HTML5 = "html5";
var UNKNOWN = "unknown";
}
class Device {
@@ -17,8 +20,12 @@ class Device {
return LINUX;
#elseif windows
return WINDOWS;
#elseif flash
return FLASH;
#elseif html5
return HTML5;
#else
return null;
return UNKNOWN;
#end
}