namespace Ubisoft.Hotel.Package.Editor { public abstract class Package { protected Package(bool needsToApplyToBuildSuite = false) { Name = HtTypes.GetTypeShortName(GetType()); NeedsToApplyToBuildSuite = needsToApplyToBuildSuite; } public string Name { get; protected set; } public bool NeedsToApplyToBuildSuite { get; private set; } public virtual void ApplyToBuildSuite(BuildSuite buildSuite) { } /// /// This method is called when the package is installed or updated, which means that this method may be called /// when the package is already installed. Make sure that your code doesn't assume a fresh installation. /// /// In combination with suites this method is called for all Hotel packages contained in a suite every time /// this suite is applied. /// public virtual void OnInstallOrUpdate() { } } }