Class EntityClassCatalog
Namespace: ValveResourceFormat.IO.Fgd
Assembly: ValveResourceFormat.dll
Gives the entity classes a map is shown with, from the tables built into the library. A game whose classes are known has its own table, found by GameInfo.Game. Any other game uses the merged table: the classes of every known game, taking for each class the version most games declare, plus the classes kept by hand for entities no game declares.
public static class EntityClassCatalogInheritance
object ← EntityClassCatalog
Methods
Get(IFileLoader, ILogger)
Gets the entity classes of the game a file loader has found. They are found once for a file loader, so everything that shows its entities shares them.
public static EntityClassTable Get(IFileLoader fileLoader, ILogger logger)Parameters
fileLoader IFileLoader
The file loader of the map.
logger ILogger
Logger that reports which classes are used.
Returns
The classes of the game, or the ones of every game where it is not one whose classes are known.
GetTable(Game)
Gets the entity classes of a game.
public static EntityClassTable GetTable(Game game)Parameters
game Game
The game, or Game.Unknown where it is not known.
Returns
The classes of the game, or the ones of every game where it is not one whose classes are known.
Exceptions
The built in classes are missing or cannot be read.
GetTable(IFileLoader)
Gets the entity classes of the game a file loader has found.
public static EntityClassTable GetTable(IFileLoader fileLoader)Parameters
fileLoader IFileLoader
The file loader of the map.
Returns
The classes of the game, or the ones of every game where it is not one whose classes are known.
Exceptions
The built in classes are missing or cannot be read.

