Hi, I'm trying to put enum into my Singleton. I've tried many ways but I can't. Plz help me with this. This is my enum.
enum {
kCloudTag = 0,
kTapLayerTag = 1,
kStageTag = 2,
kWarningTag = 3,
kEnemyProjectileTag = 10,
kProjectileTag = 11,
kMissileTag = 12,
kBonusTag = 20,
kChopterTag = 100,
kChopterGatlingTag = 101,
kEgMixerTag = 102,
kGashiingTag = 103,
kLightningIXTag = 104,
kLightningVIIITag = 105,
kMantarayTag = 106,
kNapalmMissileTag = 107,
kOwlionTag = 108,
kOwlionLaserTag = 109,
kOwlionLeaderTag = 110,
kOwlionMissileTag = 111,
kOwlionNapalmTag = 112,
kPoseidonTag = 113,
kScroopTag = 114,
kSmallMissileTag = 115,
kPreStart = 200,
kStart = 201,
kPause = 202,
kOver = 203
};
And this is my Singleton
#import "VariableStore.h"
static VariableStore *singletonVariableStore = nil;
@implementation VariableStore
@synthesize enemyProjectiles = _enemyProjectiles;
@synthesize targets = _targets;
@synthesize player = _player;
+(VariableStore*)sharedVariableStore {
@synchronized(self) {
if (!singletonVariableStore) {
singletonVariableStore = [[VariableStore alloc] init];
}
}
return singletonVariableStore;
}
@end
My question is, where should I put the enum? I've tried to pun on header (.h) and also .m. But it doesn't work.