2010-11-30 23:26:03 +00:00
|
|
|
//
|
|
|
|
// ModelBoneCollection.m
|
|
|
|
// XNI
|
|
|
|
//
|
|
|
|
// Created by Matej Jan on 29.11.10.
|
|
|
|
// Copyright 2010 Retronator. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "ModelBoneCollection.h"
|
|
|
|
|
|
|
|
#import "Retronator.Xni.Framework.Graphics.h"
|
|
|
|
|
|
|
|
#define ReadOnlyCollection ModelBoneCollection
|
|
|
|
#define T ModelBone*
|
|
|
|
#define Initialization bones = [[NSMutableDictionary alloc] init]; for (ModelBone* bone in collection) {if (bone.name) [bones setObject:bone forKey:bone.name];}
|
2011-01-15 02:05:37 +00:00
|
|
|
#define Disposing [bones release];
|
2010-11-30 23:26:03 +00:00
|
|
|
|
|
|
|
#include "ReadOnlyCollection.m.h"
|
|
|
|
|
|
|
|
@implementation ModelBoneCollection (Custom)
|
|
|
|
|
|
|
|
- (ModelBone *) itemForName:(NSString *)name {
|
|
|
|
return [bones objectForKey:name];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
#undef ReadOnlyCollection
|
|
|
|
#undef T
|
|
|
|
#undef Initialization
|