34 |
#include <Foundation/NSException.h> |
#include <Foundation/NSException.h> |
35 |
#include <Foundation/NSFileHandle.h> |
#include <Foundation/NSFileHandle.h> |
36 |
#include <Foundation/NSNotification.h> |
#include <Foundation/NSNotification.h> |
37 |
|
#include <Foundation/NSBundle.h> |
38 |
#include <Foundation/NSProcessInfo.h> |
#include <Foundation/NSProcessInfo.h> |
39 |
|
|
40 |
#include "Network/NetParty.h" |
#include "Network/NetParty.h" |
58 |
|
|
59 |
+ (MdlModel *) model |
+ (MdlModel *) model |
60 |
{ |
{ |
61 |
return [[MdlModel alloc] |
static MdlModel *model = nil; |
62 |
initWithContentsOfFile: @"Resources/Model/bateau.mdl"]; |
|
63 |
|
if (!model) |
64 |
|
{ |
65 |
|
NSString *modelPath |
66 |
|
= [[NSBundle mainBundle] pathForResource: @"bateau" |
67 |
|
ofType: @"mdl" |
68 |
|
inDirectory: @"Data/Models"]; |
69 |
|
|
70 |
|
model = [[MdlModel alloc] initWithContentsOfFile: modelPath]; |
71 |
|
} |
72 |
|
|
73 |
|
return model; |
74 |
} |
} |
75 |
|
|
76 |
@end |
@end |