Barotrauma Client Doc
|
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 | |
abstract void | LoadFile () |
abstract void | UnloadFile () |
abstract 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.
Definition at line 22 of file ContentFile.cs.
|
protected |
Definition at line 129 of file ContentFile.cs.
|
virtual |
Reimplemented in Barotrauma.BaseSubFile, and Barotrauma.HashlessFile.
Definition at line 145 of file ContentFile.cs.
|
static |
Definition at line 87 of file ContentFile.cs.
|
static |
Definition at line 70 of file ContentFile.cs.
|
pure virtual |
Implemented in Barotrauma.UIStyleFile, Barotrauma.TextFile, Barotrauma.BaseSubFile, Barotrauma.SkillSettingsFile, Barotrauma.RandomEventsFile, Barotrauma.OtherFile, Barotrauma.OrdersFile, Barotrauma.NPCConversationsFile, Barotrauma.MapGenerationParametersFile, Barotrauma.LevelGenerationParametersFile, Barotrauma.JobsFile, Barotrauma.GenericPrefabFile< T >, Barotrauma.DecalsFile, Barotrauma.CharacterFile, and Barotrauma.AfflictionsFile.
|
virtual |
Reimplemented in Barotrauma.CharacterFile.
Definition at line 143 of file ContentFile.cs.
|
pure virtual |
Implemented in Barotrauma.UIStyleFile, Barotrauma.TextFile, Barotrauma.BaseSubFile, Barotrauma.SkillSettingsFile, Barotrauma.RandomEventsFile, Barotrauma.OtherFile, Barotrauma.OrdersFile, Barotrauma.NPCConversationsFile, Barotrauma.MapGenerationParametersFile, Barotrauma.LevelGenerationParametersFile, Barotrauma.JobsFile, Barotrauma.GenericPrefabFile< T >, Barotrauma.DecalsFile, Barotrauma.CharacterFile, and Barotrauma.AfflictionsFile.
|
pure virtual |
Implemented in Barotrauma.UIStyleFile, Barotrauma.TextFile, Barotrauma.BaseSubFile, Barotrauma.SkillSettingsFile, Barotrauma.RandomEventsFile, Barotrauma.OtherFile, Barotrauma.OrdersFile, Barotrauma.NPCConversationsFile, Barotrauma.MapGenerationParametersFile, Barotrauma.LevelGenerationParametersFile, Barotrauma.JobsFile, Barotrauma.GenericPrefabFile< T >, Barotrauma.DecalsFile, Barotrauma.CharacterFile, and Barotrauma.AfflictionsFile.
readonly ContentPackage Barotrauma.ContentFile.ContentPackage |
Definition at line 136 of file ContentFile.cs.
readonly Md5Hash Barotrauma.ContentFile.Hash |
Definition at line 138 of file ContentFile.cs.
readonly ContentPath Barotrauma.ContentFile.Path |
Definition at line 137 of file ContentFile.cs.
|
static |
Definition at line 62 of file ContentFile.cs.
|
get |
Definition at line 150 of file ContentFile.cs.