io.extendreality.malimbe
Advanced tools
Comparing version 7.0.0 to 8.0.0
# Changelog | ||
# [8.0.0](https://github.com/ExtendRealityLtd/Malimbe/compare/v7.0.0...v8.0.0) (2019-01-29) | ||
### Features | ||
* **PropertySetter:** allow using property inside called method ([ba8d4ac](https://github.com/ExtendRealityLtd/Malimbe/commit/ba8d4ac)) | ||
### BREAKING CHANGES | ||
* **PropertySetter:** `SetsPropertyAttribute` was renamed to | ||
`CalledBySetterAttribute` and the expected signature of the | ||
annotated method changed. Please see the latest Readme for details. | ||
# [7.0.0](https://github.com/ExtendRealityLtd/Malimbe/compare/v6.1.1...v7.0.0) (2019-01-27) | ||
@@ -4,0 +18,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "A collection of tools to simplify writing public API components in Unity.", | ||
"version": "7.0.0", | ||
"version": "8.0.0", | ||
"unity": "2018.1", | ||
@@ -8,0 +8,0 @@ "keywords": [ |
@@ -110,5 +110,6 @@ [![Malimbe logo][Malimbe-Image]](#) | ||
A generic weaver. Calls a validation method at the start of a property's setter. | ||
A generic weaver. Calls a method at the end of a property's setter. | ||
* Annotate a method with `[SetsProperty(nameof(SomeProperty))]` to use this. The method needs to follow the signature pattern `T MethodName(T, T)` where `T` is the property's type. The accessibility level of the method doesn't matter and the name lookup is case insensitive. A call to this method will be added to the _start_ of the property's setter. | ||
* Annotate a method with `[CalledBySetter(nameof(SomeProperty))]` to use this. The accessibility level of the method doesn't matter and the name lookup is case insensitive. A call to this method will be added to the _end_ of the property's setter. | ||
* The method needs to follow the signature pattern `void MethodName(T previousValue, ref T newValue)` where `T` is the property's type. This allows the method's body to use the previous and new values and also offers the ability to change the final value by setting `newValue` if needed. | ||
* The property needs to be declared in the same type the method is declared in. Both a getter and setter are required for the property. | ||
@@ -115,0 +116,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
780943
197