Ejemplo n.º 1
0
 public static TAsset?Search <TAsset>(string name) where TAsset : Asset
 {
     using var _ = ApiCallSource.StartExternalCall();
     return(SearchInner <TAsset>(name));
 }
Ejemplo 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));
 }
Ejemplo 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));
 }
Ejemplo n.º 4
0
 public byte[]? ReadToEnd()
 {
     using var _ = ApiCallSource.StartExternalCall();
     return(ReadToEndInner());
 }
Ejemplo 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));
 }
Ejemplo n.º 6
0
 public static Asset?GetAsset(string targetPath)
 {
     using var _ = ApiCallSource.StartExternalCall();
     return(GetAssetInner(targetPath));
 }
Ejemplo 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));
        }
Ejemplo 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));
 }
Ejemplo n.º 9
0
        public static IEntry?Traverse(string path)
        {
            using var _ = ApiCallSource.StartExternalCall();

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

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

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

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

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

            return(SearchInner(parent, name));
        }
Ejemplo 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));
 }
Ejemplo 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));
 }
Ejemplo n.º 20
0
 public static void RegisterAssetType(string type, string subtype, string[] fileExtensions, HandlerFunc handler)
 {
     using var _ = ApiCallSource.StartExternalCall();
     RegisterAssetTypeInner(type, subtype, fileExtensions, handler);
 }
Ejemplo n.º 21
0
        public static IEntry?AddEntry(string path, IEntry entry, Permissions perm = Permissions.PublicReadWrite)
        {
            using var _ = ApiCallSource.StartExternalCall();

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

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