//
//  BaseEvent.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 "BaseEvent.h"


@implementation BaseEvent

@synthesize params = _params;
@synthesize type = _type;


-(id)initWithType:(NSString *)type params:(NSDictionary *)params {
	if ((self = [super init])) {
		self.params = params;
		self.type = type;
	}
	return self;
}

-(id)clone {
	NSDictionary *clonedParams = [NSDictionary dictionaryWithDictionary:_params];
	NSString *clonedType = [NSString stringWithString:_type];
	
	BaseEvent *clone = [[BaseEvent alloc] initWithType:clonedType params:clonedParams];
	return clone;
}

-(NSString *)description {
		
	return [NSString stringWithString:_type];
}

@end
