Options
All
  • Public
  • Public/Protected
  • All
Menu

资源文件

Hierarchy

  • Source

Implements

Index

Constructors

Private constructor

  • new Source(assetPath: string, namespace: string, sourceManager: SourceManager): Source
  • 构造函数

    Parameters

    • assetPath: string

      资源文件的路径 (url | path)

    • namespace: string

      命名空间

    • sourceManager: SourceManager

      资源管理器

    Returns Source

Properties

Readonly assetPath

assetPath: string

modelSourceFiles

modelSourceFiles: Map<string, ModelSourceFile> = ...

模型文件列表

Readonly namespace

namespace: string

pathSourceFiles

pathSourceFiles: Map<string, PathSourceFile> = ...

path文件列表

Readonly sourceManager

sourceManager: SourceManager

Accessors

path

  • get path(): string

rootPath

  • get rootPath(): string

Methods

loadFile

parse

  • parse(): Promise<void>

Private parseDefinitions

Private parsePaths

Static create