Files
kraken/KRWorldBuilder/KRWorldBuilder/KRWBFileSystemItem.h
kearwood cad53fcf69 Very early KRWorldBuilder scaffolding in progress.
New KRVector3 math functions

--HG--
extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%4058
2012-06-07 17:19:29 +00:00

26 lines
560 B
Objective-C

//
// KRWBFileSystemItem.h
// KRWorldBuilder
//
// Created by Kearwood Gilbert on 12-05-12.
// Copyright (c) 2012 Kearwood Software. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface KRWBFileSystemItem : NSObject
{
NSURL *fullPath;
KRWBFileSystemItem *parent;
NSMutableArray *children;
}
+ (KRWBFileSystemItem *)rootItem;
- (NSInteger)numberOfChildren;// Returns -1 for leaf nodes
- (KRWBFileSystemItem *)childAtIndex:(NSUInteger)n; // Invalid to call on leaf nodes
- (NSURL *)fullPath;
- (NSString *)relativePath;
@end