Documentation
¶
Index ¶
Constants ¶
View Source
const ( // SourceBareFile is used on resources that are not stored inside a WAD or PK3 archive SourceBareFile = "__BARE" // UndefinedSOCEntry is used when a SOC definition is requested but not found UndefinedSOCEntry = "__UNDEFINED" )
Variables ¶
View Source
var ( ErrSOCUnexpectedProperty = errors.New("unexpected property in SOC") ErrSOCUnexpectedLump = errors.New("unexpected lump in SOC") )
Functions ¶
This section is empty.
Types ¶
type CheckDirectoryOptions ¶
type CheckDirectoryOptions struct {
IgnoreFiles []string
}
type CheckDirectoryResult ¶
type CheckDirectoryResult struct { Files []string Maps ResourceMap[GameMap] MapConflicts map[string][]GameMap }
func CheckDirectory ¶
func CheckDirectory(path string, options CheckDirectoryOptions) (CheckDirectoryResult, error)
type PK3File ¶
type PK3File struct { Path string Files []string SOCs []*SOCDefinition Skins []Skin }
type ResourceMap ¶
ResourceMap is a dictionary of resources, ideally only one resource should occupy a key
func (ResourceMap[T]) Join ¶
func (r ResourceMap[T]) Join(other ResourceMap[T])
Join adds the contents of another resource map to the current one
type SOCDefinition ¶
type SOCDefinition struct { Slots []string Maps ResourceMap[GameMap] Other []SOCBlock Source string FilePath string }
func LoadSOC ¶
func LoadSOC(path string) (*SOCDefinition, error)
func NewSOCDef ¶
func NewSOCDef(source, file string) *SOCDefinition
func (*SOCDefinition) AddBlock ¶
func (s *SOCDefinition) AddBlock(block SOCBlock)
func (*SOCDefinition) Freeslots ¶
func (s *SOCDefinition) Freeslots() ResourceMap[Lump]
Source Files
¶
Click to show internal directories.
Click to hide internal directories.