//
//  MMOItemVariable.m
//  SFS2X
//
//  Created by Lapo on 28/11/13.
//  Copyright (c) 2013 A51 Integrated | http://a51integrated.com. All rights reserved.
//

#import "MMOItemVariable.h"
#import "ISFSArray.h"

@implementation MMOItemVariable

+ (id <IMMOItemVariable>) fromSFSArray:(id <ISFSArray>)sfsa
{
    id <IMMOItemVariable> variable = [[MMOItemVariable alloc] initWithName:[sfsa getUtfString:0] value:[sfsa getElementAt:2] type:[sfsa getByte:1]];
	
	return variable;
}

+ (id <IMMOItemVariable>)variableWithName:(NSString *)name value:(id)value
{
    return [[MMOItemVariable alloc] initWithName:name value:value type:-1];
}

+ (id <IMMOItemVariable>)variableWithName:(NSString *)name value:(id)value type:(NSInteger)type
{
    return [[MMOItemVariable alloc] initWithName:name value:value type:type];
}



@end
