|
Barotrauma Client
|
Base class for content file types, which are loaded from filelist.xml via reflection. PLEASE AVOID INHERITING FROM THIS CLASS DIRECTLY. Inheriting from GenericPrefabFile<T> is likely what you want. More...
Classes | |
| class | TypeInfo |
Public Member Functions | |
| void | LoadFile () |
| void | UnloadFile () |
| void | Sort () |
| virtual void | Preload (Action< Sprite > addPreloadedSprite) |
| virtual Md5Hash | CalculateHash () |
Static Public Member Functions | |
| static bool | IsLegacyContentType (XElement contentFileElement, ContentPackage package, bool logWarning) |
| static Result< ContentFile, ContentPackage.LoadError > | CreateFromXElement (ContentPackage contentPackage, XElement element) |
Public Attributes | |
| readonly ContentPackage | ContentPackage |
| readonly ContentPath | Path |
| readonly Md5Hash | Hash |
Static Public Attributes | |
| static readonly ImmutableHashSet< TypeInfo > | Types |
Protected Member Functions | |
| ContentFile (ContentPackage contentPackage, ContentPath path) | |
Properties | |
| bool | NotSyncedInMultiplayer [get] |
Base class for content file types, which are loaded from filelist.xml via reflection. PLEASE AVOID INHERITING FROM THIS CLASS DIRECTLY. Inheriting from GenericPrefabFile<T> is likely what you want.
|
protected |
|
virtual |
Reimplemented in Barotrauma.BaseSubFile, and Barotrauma.HashlessFile.
|
static |
|
static |
|
abstract |
|
virtual |
Reimplemented in Barotrauma.CharacterFile.
|
abstract |
|
abstract |
| readonly ContentPackage Barotrauma.ContentFile.ContentPackage |
| readonly Md5Hash Barotrauma.ContentFile.Hash |
| readonly ContentPath Barotrauma.ContentFile.Path |
|
static |
|
get |