Releases: obvEve/SecretAPI
Releases · obvEve/SecretAPI
2.0.3
2.0.2
Obsoletes
- All of
RoleExtensionshas been obsoleted, in favor of their basegame/labapi counterparts
Additions
IPriorityinterface - Used byCallOnLoadAttribute/CallOnUnloadAttribute
Changes
- SecretAPI will now be considered Transparent (On its own should no longer add modded tag to a server)
RoomExtensionsnow considersHczWaysideIncinerator&Hcz096as invalid rooms
2.0.1
Additions
bool CollectionExtensions.TryGetRandomValue<T>(IEnumerable<T>, out T)- Will return false on empty collections or if value returned is null
Bug Fixes
- CollectionExtensions.GetRandomValue - Fixed
ArgumentOutOfRangeException- This will now returndefault (possibly null)when handling size 0 collections - CustomSetting - Fixed sending settings to npcs
Full Changelog: 2.0.0...2.0.1
2.0.0
Whats Changed
License
MIT License has been applied to the project
Additions
- Added
CallOnLoadAttribute&CallOnUnloadAttributewhich you can use to enable/disable features - Added
HarmonyExtensions.SafePatch(Harmony, Type) - Added
PlayerExtensions.GetEffect(Player, string - Added
CustomTickingPlayerEffect- Will tick every X seconds via OnTick(), rather than a constant Update - Added
IsServerOnly,Label(Setter),DescriptionHint,Id(Init),CollectionId,IsSharedproperties toCustomSetting
Fixes
- Fixed
CustomSettingbeing overwritten by external plugins
Breaking Changes
- Removed all previously obsoleted methods, classes, etc.
- Removed
PlayerExtensions.HasGamePermission - Removed
IAttackDamageModifierEffect- You should make your own variant if its needed DoorPermissionCheck.InventoryExludingCurrentrenamed toInventoryExcludingCurrent- Reworked
CustomSettingto allow per player setting values- Will now use
Player? KnownOwnerrather than Player method params - This is only null on the original setting created CustomSetting.TryGetrenamed toGetPlayerSettingCustomSetting.PersonalizeSettingwill be called before the setting is sent - should be used to set exclusive optionsCustomSetting.HandleSettingUpdateno longer hadPlayeroverload
- Will now use
Full Changelog: 1.1.3...2.0.0
2.0.0-beta5
⚠️ You are recommended to begin updating as 1.x will no longer be maintained
2.0.0-beta5
Changes
- Fixed some docs
- Added
CustomDropdownSetting::SyncedIndex - Renamed
CustomSetting::UpdatePlayerSetting->PersonalizeSetting
Full Changelog: 2.0.0-beta4...2.0.0-beta5
2.0.0
Additions
- Added
CallOnUnloadAttributewhich you can use to disable your stuff (make sure to call from Plugin.Disable or equivalent) - Added
HarmonyExtensions.SafePatch(Harmony, Type - Added
PlayerExtensions.GetEffect(Player, string - Added
CustomTickingPlayerEffect - Added
IsServerOnly,Label(Setter),DescriptionHint,Id(Init),CollectionId,IsSharedproperties toCustomSetting
Breaking Changes
- Removed all previously obsoleted methods, classes, etc.
- Removed
IAttackDamageModifierEffect- You should make your own variant if its needed DoorPermissionCheck.InventoryExludingCurrentrenamed toInventoryExcludingCurrent- Reworked
CustomSettingto allow per player setting values- Will now use
Player? KnownOwnerrather than Player method params - This is only null on the original setting created CustomSetting.TryGetrenamed toGetPlayerSettingCustomSetting.PersonalizeSettingwill be called before the setting is sent - should be used to set exclusive optionsCustomSetting.HandleSettingUpdateno longer hadPlayeroverload
- Will now use
1.1.3
⚠️ Version 1.x will no longer be maintained anymore
What's Changed
- Fixed missing method exception
Full Changelog: 1.1.2...1.1.3
2.0.0-beta4
⚠️ This is a release of SCP:SL 14.1.3 - Do not put on a server unless you have updated.
2.0.0-beta4
Changes
- Removed
AddRegeneration,GiveRandomCandy,GiveCandyandHasGamePermissionfromPlayerExtensions - Added
IsServerOnly,Label(Setter),DescriptionHint,Id(Init),CollectionId,IsSharedproperties toCustomSetting
Full Changelog: 2.0.0-beta3...2.0.0-beta4
2.0.0
Additions
- Added
CallOnUnloadAttributewhich you can use to disable your stuff (make sure to call from Plugin.Disable or equivalent) - Added
HarmonyExtensions.SafePatch(Harmony, Type - Added
PlayerExtensions.GetEffect(Player, string - Added
CustomTickingPlayerEffect - Added
IsServerOnly,Label(Setter),DescriptionHint,Id(Init),CollectionId,IsSharedproperties toCustomSetting
Breaking Changes
- Removed all obsoletes
- Removed
IAttackDamageModifierEffect- You should make your own variant if its needed - Removed
DoorPermissionCheck.InventoryExludingCurrentreplaced byInventoryExcludingCurrent - Reworked
CustomSettingto allow per player setting values- Will now use
Player? KnownOwnerrather than Player method params CustomSetting.TryGetremoved toGetPlayerSettingCustomSetting.UpdatePlayerSettingwill be called before the setting is sent - should be used to set exclusive optionsCustomSetting.HandleSettingUpdateno longer hadPlayeroverload
- Will now use
2.0.0-beta3
2.0.0-beta3
The changelog will be equal to that of the entire beta and NOT beta 2 -> 3
Additions
- Added
CallOnUnloadAttributewhich you can use to disable your stuff (make sure to call from Plugin.Disable or equivalent) - Added
HarmonyExtensions.SafePatch(Harmony, Type - Added
PlayerExtensions.AddRegeneration(Player, float, float) - Added
PlayerExtensions.GetEffect(Player, string - Added
PlayerExtensions.GiveRandomCandy(Player, ItemAddReason) - Added
PlayerExtensions.GiveCandy(Player, CandyKindID, ItemAddReason) - Added
CustomTickingPlayerEffect
Breaking Changes
- Removed all obsoletes
- Removed
IAttackDamageModifierEffect- You should make your own variant if its needed - Removed
DoorPermissionCheck.InventoryExludingCurrentreplaced byInventoryExcludingCurrent - Reworked
CustomSettingto allow per player setting values- Will now use
Player? KnownOwnerrather than Player method call CustomSetting.TryGetremoved toGetPlayerSettingCustomSetting.UpdatePlayerSettingwill be called before the setting is sent - should be used to set exclusive optionsCustomSetting.HandleSettingUpdateno longer hadPlayeroverload
- Will now use
Changes
- Changed
PlayerExtensions.HasGamePermissionto useServerRoles.Permissionsinstead ofUserGroup - Improved documentation on types and methods
2.0.0-beta2
What's Changed
- Removed some obsoletes
MirrorExtensions.ProperWritewas made into an extension method- Improved some docs
- Pooled the
NetworkWriterused internally forCustomSetting
Full Changelog: 2.0.0-beta1...2.0.0-beta2