Browse Source

allow to use SFlags in flash

Nicolas Cannasse 14 years ago
parent
commit
b407b36fab
1 changed files with 1 additions and 0 deletions
  1. 1 0
      std/neko/db/Types.hx

+ 1 - 0
std/neko/db/Types.hx

@@ -52,6 +52,7 @@ typedef SEncoded = Int
 typedef SSerialized = String
 typedef SSerialized = String
 typedef SNekoSerialized = String
 typedef SNekoSerialized = String
 
 
+@:native("Int")
 extern class SFlags<T> {
 extern class SFlags<T> {
 	public inline function get( v : T ) : Bool {
 	public inline function get( v : T ) : Bool {
 		return (cast this) & (1 << Type.enumIndex(v)) != 0;
 		return (cast this) & (1 << Type.enumIndex(v)) != 0;