//
//  VariableType.m
//  SFS2X
//
//  Original development by Infosfer Game Technologies Ltd. | http://www.infosfer.com.
//
//  Maintained and developed by A51 Integrated.
//  Copyright 2012 A51 Integrated | http://a51integrated.com. All rights reserved.
//

#import "VariableType.h"

NSInteger const VariableType_NULL = 0;
NSInteger const VariableType_BOOL = 1;
NSInteger const VariableType_INT = 2;
NSInteger const VariableType_DOUBLE = 3;
NSInteger const VariableType_STRING = 4;
NSInteger const VariableType_OBJECT = 5;
NSInteger const VariableType_ARRAY = 6;

@implementation VariableType

static NSArray *TYPES_AS_STRING = nil;



+(void)initialize {
	TYPES_AS_STRING = [NSArray arrayWithObjects:@"Null", @"Bool", @"Int", @"Double", @"String", @"Object", @"Array", nil];
}


+(NSString *)getTypeName:(NSInteger)id_ {
	return [TYPES_AS_STRING objectAtIndex:id_];
}

+(NSInteger)getTypeFromName:(NSString *)name {
	return [TYPES_AS_STRING indexOfObject:name];
}

@end
