Documentation ¶
Overview ¶
Package hsproject contains Hellspawner's Project implementation
Index ¶
- type Project
- func (p *Project) CreateNewFile(fileType hsfiletypes.FileType, path *common.PathEntry) (err error)
- func (p *Project) CreateNewFolder(path *common.PathEntry) (err error)
- func (p *Project) FindPathEntry(path string) *common.PathEntry
- func (p *Project) GetFileStructure() (*common.PathEntry, error)
- func (p *Project) GetMPQFileNodes(mpq d2interface.Archive, cfg *config.Config) *common.PathEntry
- func (p *Project) GetProjectFileContentPath() string
- func (p *Project) GetProjectFilePath() string
- func (p *Project) InvalidateFileStructure()
- func (p *Project) ReloadAuxiliaryMPQs(cfg *config.Config) (err error)
- func (p *Project) RenameFile(path string)
- func (p *Project) Save() error
- func (p *Project) ValidateAuxiliaryMPQs(cfg *config.Config) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Project ¶
type Project struct { ProjectName string Description string Author string AuxiliaryMPQs []string // contains filtered or unexported fields }
Project represents HellSpawner's project
func LoadFromFile ¶
LoadFromFile loads projects file
func (*Project) CreateNewFile ¶
CreateNewFile creates a new file
func (*Project) CreateNewFolder ¶
CreateNewFolder creates a new directory
func (*Project) FindPathEntry ¶
FindPathEntry search for path entry in project's cahe
func (*Project) GetFileStructure ¶
GetFileStructure returns project's file structure
func (*Project) GetMPQFileNodes ¶
GetMPQFileNodes returns mpq's node
func (*Project) GetProjectFileContentPath ¶
GetProjectFileContentPath returns path to project's content
func (*Project) GetProjectFilePath ¶
GetProjectFilePath returns project's file path
func (*Project) InvalidateFileStructure ¶
func (p *Project) InvalidateFileStructure()
InvalidateFileStructure cleans project's files structure
func (*Project) ReloadAuxiliaryMPQs ¶
ReloadAuxiliaryMPQs reloads auxiliary MPQs
func (*Project) RenameFile ¶
RenameFile renames project's file
Click to show internal directories.
Click to hide internal directories.