Update 'Filesystem'

_bryan 2023-01-22 15:32:47 +00:00
parent 314f8613d3
commit 0bc694b759

@ -1,3 +1,7 @@
# Packages
There are no technical differences between packages other than the types of content they're allowed to define or replace. A 'main' package is a package which defines symbols, variables, and other attributes that scripts will have access to. Character attributes, skill types, and other such things are defined in main packages. Mod packages is content that extends and adds additional content to a particular main package. It is required to load a main package, and it is optional to load mod packages.
# Filesystem
The filesystem is a wrapper of Panda3D's virtual filesystem. When loading the platform a default main asset folder is always loaded. The user must supply via the argument `-p` or `--package` a single or multiple packages which hold game data.
@ -6,6 +10,7 @@ Example: `python .\source\ --package C:\Users\Bryan\Documents\example-package ..
https://docs.panda3d.org/1.10/cpp/reference/panda3d.core.VirtualFileSystem
## Folder structure
The virtual file system follows the posix standard and uses forward slashes using `/` as root.
@ -38,7 +43,8 @@ Every package is required to have this file located at the base directory of the
```json
{
"name": "main-assets",
"version": "0.1-alpha"
"version": "0.1-alpha",
"type": "mod"
}
```