mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
295cf82323
git-svn-id: https://svn.eduke32.com/eduke32@4644 1a8010ca-5511-0410-912e-c29ae57300e0
40 lines
709 B
Objective-C
40 lines
709 B
Objective-C
/*
|
|
* GrpFile.game.m
|
|
* duke3d
|
|
*
|
|
* Created by Jonathon Fowler on 24/07/09.
|
|
* Copyright 2009 __MyCompanyName__. All rights reserved.
|
|
*
|
|
*/
|
|
|
|
#include "GrpFile.game.h"
|
|
|
|
@implementation GrpFile
|
|
- (id)initWithGrpfile:(struct grpfile *)grpfile andName:(NSString*)aName
|
|
{
|
|
self = [super init];
|
|
if (self) {
|
|
fg = grpfile;
|
|
name = aName;
|
|
[aName retain];
|
|
}
|
|
return self;
|
|
}
|
|
- (void)dealloc
|
|
{
|
|
[name release];
|
|
[super dealloc];
|
|
}
|
|
- (NSString *)name
|
|
{
|
|
return name;
|
|
}
|
|
- (NSString *)grpname
|
|
{
|
|
return [NSString stringWithCString:(fg->name) encoding:NSUTF8StringEncoding];
|
|
}
|
|
- (struct grpfile *)entryptr
|
|
{
|
|
return fg;
|
|
}
|
|
@end
|