Sorry if this is a stupid question but I am trying to translate following this tutorial
http://www.raywenderlich.com/24878/introduction-to-component-based-architecture-in-games
In the below code is a function whose class extends NSObject,
- (id)initWithEid:(uint32_t)eid {
if ((self = [super init])) {
*eid = eid;
}
return self;
}
When I translate it as:
bool initWithEid
{
if //Problem is here; CCObject does not have a init function
*eid=eid;
}
}