forked from WolvenKit/WolvenKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FileList.h
45 lines (31 loc) · 936 Bytes
/
FileList.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#pragma once
#include "stdafx.h"
#include "ReferenceCounted.h"
using namespace irr;
using namespace System;
using namespace IrrlichtLime::Core;
namespace IrrlichtLime {
namespace IO {
public ref class FileList : ReferenceCounted
{
public:
int AddFile(String^ fullPath, int offset, int size, bool isDirectory, int id);
int AddFile(String^ fullPath, int offset, int size, bool isDirectory);
int FindFile(String^ filename, bool isDirectory);
int FindFile(String^ filename);
int GetFileID(int index);
String^ GetFileName(int index);
int GetFileOffset(int index);
int GetFileSize(int index);
String^ GetFullFileName(int index);
bool IsDirectory(int index);
void Sort();
property int Count { int get(); }
property String^ Path { String^ get(); }
internal:
static FileList^ Wrap(io::IFileList* ref);
FileList(io::IFileList* ref);
io::IFileList* m_FileList;
};
} // end namespace IO
} // end namespace IrrlichtLime