Esempio n. 1
0
 public static TAsset?Search <TAsset>(string name) where TAsset : Asset
 {
     using var _ = ApiCallSource.StartExternalCall();
     return(SearchInner <TAsset>(name));
 }
Esempio n. 2
0
 public static TAsset?Search <TAsset>(VirtualFileSystem.Directory parent, string name) where TAsset : Asset
 {
     using var _ = ApiCallSource.StartExternalCall();
     return(SearchInner <TAsset>(parent, name));
 }
Esempio n. 3
0
 public TObject Deserialize <TObject>(long offset = long.MaxValue, SeekOrigin loc = SeekOrigin.Begin, bool retainPosition = true)
 {
     using var _ = ApiCallSource.StartExternalCall();
     return(DeserializeInner <TObject>(offset, loc, retainPosition));
 }
Esempio n. 4
0
 public byte[]? ReadToEnd()
 {
     using var _ = ApiCallSource.StartExternalCall();
     return(ReadToEndInner());
 }
Esempio n. 5
0
 public static LazyAsset?ImportLazy(string assetType, Stream stream, string targetPath, string name,
                                    Permissions perm, string sourcePath, params object[] args)
 {
     using var _ = ApiCallSource.StartExternalCall();
     return(ImportLazyInner(assetType, stream, targetPath, name, perm, sourcePath, args));
 }
Esempio n. 6
0
 public static Asset?GetAsset(string targetPath)
 {
     using var _ = ApiCallSource.StartExternalCall();
     return(GetAssetInner(targetPath));
 }
Esempio n. 7
0
        public static TEntry?Search <TEntry>(Directory parent, string name) where TEntry : class, IEntry
        {
            using var _ = ApiCallSource.StartExternalCall();

            return(SearchInner <TEntry>(parent, name));
        }
Esempio n. 8
0
 public static Asset?Import(string assetType, bool createOnFail, string targetPath, string name, Permissions perm, string sourcePath, params object[] args)
 {
     using var _ = ApiCallSource.StartExternalCall();
     return(ImportInner(assetType, createOnFail, targetPath, name, perm, sourcePath, args));
 }
Esempio n. 9
0
        public static IEntry?Traverse(string path)
        {
            using var _ = ApiCallSource.StartExternalCall();

            return(TraverseInner(path));
        }
Esempio n. 10
0
        public static TEntry?Search <TEntry>(string name) where TEntry : class, IEntry
        {
            using var _ = ApiCallSource.StartExternalCall();

            return(SearchInner <TEntry>(Instance.RootNode, name));
        }
Esempio n. 11
0
 public static Directory?CreatePath(string path, Permissions perm)
 {
     using var _ = ApiCallSource.StartExternalCall();
     return(CreatePathInner(path, perm));
 }
Esempio n. 12
0
        public static TEntry?Traverse <TEntry>(string path) where TEntry : class, IEntry
        {
            using var _ = ApiCallSource.StartExternalCall();

            return(TraverseInner <TEntry>(path));
        }
Esempio n. 13
0
        public static bool EntryExists(string path, string name)
        {
            using var _ = ApiCallSource.StartExternalCall();

            return(EntryExistsInner(path, name));
        }
Esempio n. 14
0
 public static Asset?Search(string name)
 {
     using var _ = ApiCallSource.StartExternalCall();
     return(SearchInner(name));
 }
Esempio n. 15
0
        public static IEntry?Search(string name)
        {
            using var _ = ApiCallSource.StartExternalCall();

            return(SearchInner(Instance.RootNode, name));
        }
Esempio n. 16
0
 public static Asset?Search(VirtualFileSystem.Directory parent, string name)
 {
     using var _ = ApiCallSource.StartExternalCall();
     return(SearchInner(parent, name));
 }
Esempio n. 17
0
        public static IEntry?Search(Directory parent, string name)
        {
            using var _ = ApiCallSource.StartExternalCall();

            return(SearchInner(parent, name));
        }
Esempio n. 18
0
 public static TAsset?Import <TAsset>(string assetType, Stream stream, string targetPath, string name,
                                      Permissions perm, string sourcePath, params object[] args) where TAsset : Asset
 {
     using var _ = ApiCallSource.StartExternalCall();
     return(ImportInner <TAsset>(assetType, stream, targetPath, name, perm, sourcePath, args));
 }
Esempio n. 19
0
 public static TEntry?AddEntry <TEntry>(string path, TEntry entry, Permissions perm = Permissions.PublicReadWrite) where TEntry : class, IEntry
 {
     using var _ = ApiCallSource.StartExternalCall();
     return(AddEntryInner(path, entry, perm));
 }
Esempio n. 20
0
 public static void RegisterAssetType(string type, string subtype, string[] fileExtensions, HandlerFunc handler)
 {
     using var _ = ApiCallSource.StartExternalCall();
     RegisterAssetTypeInner(type, subtype, fileExtensions, handler);
 }
Esempio n. 21
0
        public static IEntry?AddEntry(string path, IEntry entry, Permissions perm = Permissions.PublicReadWrite)
        {
            using var _ = ApiCallSource.StartExternalCall();

            return(AddEntryInner(path, entry, perm));
        }
Esempio n. 22
0
 public static TAsset?GetAsset <TAsset>(string targetPath) where TAsset : Asset
 {
     using var _ = ApiCallSource.StartExternalCall();
     return(GetAssetInner <TAsset>(targetPath));
 }
Esempio n. 23
0
        public static void DeleteEntry(string path, string name)
        {
            using var _ = ApiCallSource.StartExternalCall();

            DeleteEntryInner(path, name);
        }
Esempio n. 24
0
 public void Serialize <TObject>(TObject obj, WriteMode writeMode = WriteMode.Overwrite)
 {
     using var _ = ApiCallSource.StartExternalCall();
     SerializeInner(obj, writeMode);
 }
Esempio n. 25
0
 public void SaveToFile()
 {
     using var _ = ApiCallSource.StartExternalCall();
     SaveToFileInner();
 }