mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
41 lines
679 B
Mathematica
41 lines
679 B
Mathematica
|
/*
|
||
|
* 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)];
|
||
|
}
|
||
|
- (struct grpfile *)entryptr
|
||
|
{
|
||
|
return fg;
|
||
|
}
|
||
|
@end
|