mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Deprecate PluginInterface::IsLightMaster() and PluginInterface::IsValidAsLightMaster()
In favour of IsLightPlugin() and IsValidAsLightPlugin() respectively. The new functions are identical to the old besides their names, which now more clearly indicate that plugins can be light without being masters.
This commit is contained in:
@@ -91,18 +91,34 @@ public:
|
||||
virtual bool IsMaster() const = 0;
|
||||
|
||||
/**
|
||||
* Check if the plugin is a light master.
|
||||
* @return True if plugin is a light master, false otherwise.
|
||||
* Check if the plugin is a light plugin.
|
||||
* @return True if plugin is a light plugin, false otherwise.
|
||||
* @deprecated Use IsLightPlugin() instead.
|
||||
*/
|
||||
[[deprecated("Use IsLightPlugin() instead.")]]
|
||||
virtual bool IsLightMaster() const = 0;
|
||||
|
||||
/**
|
||||
* Check if the plugin is a light plugin.
|
||||
* @return True if plugin is a light plugin, false otherwise.
|
||||
*/
|
||||
virtual bool IsLightPlugin() const = 0;
|
||||
|
||||
/**
|
||||
* Check if the plugin is or would be valid as a light master.
|
||||
* @return True if the plugin is a valid light master or would be a valid
|
||||
* light master, false otherwise.
|
||||
*/
|
||||
[[deprecated("Use IsValidAsLightPlugin() instead.")]]
|
||||
virtual bool IsValidAsLightMaster() const = 0;
|
||||
|
||||
/**
|
||||
* Check if the plugin is or would be valid as a light master.
|
||||
* @return True if the plugin is a valid light master or would be a valid
|
||||
* light master, false otherwise.
|
||||
*/
|
||||
virtual bool IsValidAsLightPlugin() const = 0;
|
||||
|
||||
/**
|
||||
* Check if the plugin contains any records other than its TES4 header.
|
||||
* @return True if the plugin only contains a TES4 header, false otherwise.
|
||||
|
||||
Reference in New Issue
Block a user