forked from mtysgithub/Qualcomm.Vuforia.UnityExtensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDataSet.cs
42 lines (34 loc) · 1.27 KB
/
DataSet.cs
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
using System;
using System.Collections.Generic;
using UnityEngine;
public abstract class DataSet
{
protected DataSet()
{
}
public abstract bool Contains(Trackable trackable);
public abstract DataSetTrackableBehaviour CreateTrackable(TrackableSource trackableSource, string gameObjectName);
public abstract DataSetTrackableBehaviour CreateTrackable(TrackableSource trackableSource, GameObject gameObject);
public abstract bool Destroy(Trackable trackable, bool destroyGameObject);
public abstract void DestroyAllTrackables(bool destroyGameObject);
public static bool Exists(string name)
{
return Exists("QCAR/" + name + ".xml", StorageType.STORAGE_APPRESOURCE);
}
public static bool Exists(string path, StorageType storageType)
{
return DataSetImpl.ExistsImpl(path, storageType);
}
public abstract IEnumerable<Trackable> GetTrackables();
public abstract bool HasReachedTrackableLimit();
public abstract bool Load(string name);
public abstract bool Load(string path, StorageType storageType);
public abstract StorageType FileStorageType { get; }
public abstract string Path { get; }
public enum StorageType
{
STORAGE_APP,
STORAGE_APPRESOURCE,
STORAGE_ABSOLUTE
}
}