1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-09 23:45:42 +00:00
X10D/CHANGELOG.md

124 lines
4.1 KiB
Markdown
Raw Normal View History

2020-04-20 14:00:20 +01:00
# Changelog
2021-01-14 16:10:59 +00:00
## [2.6.0] - 2020-10-20
### Added
2021-01-14 16:10:59 +00:00
- Add `string.AsNullIfEmpty()`
- Returns the current string, or `null` if the current string is null or empty.
- Add `string.AsNullIfWhiteSpace()`
- Returns the current string, or `null` if the current string is null, empty, or consists of only whitespace.
- Add `string.Reverse()`
- Reverses the current string
- Add `string.WithAlternative()`
- Returns the current string, or an alternative value if the current string is null or empty, or optionally if the current string consists of only whitespace.
### Changed
- n/a
### Removed
- n/a
## [2.5.0] - 2020-07-15
### Added
- `WaitHandle.WaitOneAsync()`
- Wraps `WaitHandle.WaitOne` as a `Task`
- Add support for Unity 2019.4.3f1
- Add `GameObject.LookAt(GameObject)`
- Rotates the Transform on the current GameObject so that it faces the Transform on another GameObject
- Add `GameObject.LookAt(Transform)`
- Rotates the Transform on the current GameObject so that it faces another transform
- Add `Transform.LookAt(GameObject)`
- Rotates the current Transform so that it faces the Transform on another GameObject
- Add `Vector3.Round([float])`
- Returns a rounded Vector3 by calling `float.Round()` on each component
- Add `Vector3.WithX(float)`
- Returns a Vector3 with a new X component value
- Add `Vector3.WithY(float)`
- Returns a Vector3 with a new Y component value
- Add `Vector3.WithZ(float)`
- Returns a Vector3 with a new Z component value
- Add `Vector3.WithXY(float, float)`
- Returns a Vector3 with new X and Y component values
- Add `Vector3.WithXZ(float, float)`
- Returns a Vector3 with new X and Z component values
- Add `Vector3.WithYZ(float, float)`
- Returns a Vector3 with new Y and Z component values
- Add `BetterBehavior` (experimental wrapper over `MonoBehaviour`)
### Changed
- n/a
### Removed
- n/a
2020-04-21 04:23:44 +01:00
## [2.2.0] - 2020-04-21
2020-04-20 14:00:20 +01:00
### Added
- Add `string.ChangeEncoding(Encoding, Encoding)`
- Converts this string from one encoding to another
2021-01-14 16:10:59 +00:00
- Add `string.IsLower()`
- Determines if all alpha characters in this string are considered lowercase
2021-01-14 16:10:59 +00:00
- Add `string.IsUpper()`
- Determines if all alpha characters in this string are considered uppercase
2020-04-20 14:00:20 +01:00
2020-04-21 04:17:28 +01:00
- Various extension methods with regards to reflection:
- `GetDefaultValue` and `GetDefaultValue<T>` - gets the value stored in the member's `DefaultValue` attribute
- `GetDescription`- gets the value stored in the member's `Description` attribute
- `SelectFromCustomAttribute<T1, T2>` - Internally calls `GetCustomAttribute<T1>` and passes it to a `Func<T1, T2>` so that specific members may be selected
2020-04-20 14:00:20 +01:00
### Changed
- n/a
### Removed
- n/a
## [2.1.0] - 2020-04-18
### Added
2021-01-14 16:10:59 +00:00
- Add `bool bool.And(bool)`
2020-04-20 14:00:20 +01:00
- Performs logical AND
2021-01-14 16:10:59 +00:00
- Add `bool bool.Or(bool)`
2020-04-20 14:00:20 +01:00
- Performs logical OR
2021-01-14 16:10:59 +00:00
- Add `bool bool.Not(bool)`
2020-04-20 14:00:20 +01:00
- Performs logical NOT
2021-01-14 16:10:59 +00:00
- Add `bool bool.XOr(bool)`
2020-04-20 14:00:20 +01:00
- Performs Logical XOR
2021-01-14 16:10:59 +00:00
- Add `bool bool.NAnd(bool)`
2020-04-20 14:00:20 +01:00
- Performs logical NAND
2021-01-14 16:10:59 +00:00
- Add `bool bool.NOr(bool)`
2020-04-20 14:00:20 +01:00
- Performs logical NOR
2021-01-14 16:10:59 +00:00
- Add `bool bool.XNOr(bool)`
2020-04-20 14:00:20 +01:00
- Performs logical XNOR
2021-01-14 16:10:59 +00:00
- Add `byte bool.ToByte()`
2020-04-20 14:00:20 +01:00
- 1 if `true`, 0 otherwise
2021-01-14 16:10:59 +00:00
- Add `short bool.ToInt16()`
2020-04-20 14:00:20 +01:00
- 1 if `true`, 0 otherwise
2021-01-14 16:10:59 +00:00
- Add `long bool.ToInt64()`
2020-04-20 14:00:20 +01:00
- 1 if `true`, 0 otherwise
### Changed
- n/a
### Removed
- n/a
## [2.0.0] - 2020-04-18
### Added
- Add `IEnumerable<T>.Split(int)`
- Performs the same operation as the previously defined `IEnumerable<byte>.Chunkify(int)`, except now accepts any type `T`
### Changed
- Fix `DateTime.Last(DayOfWeek)` implementation
- Now returns the correct date/time for a given day of the week
### Removed
- Remove `IEnumerable<byte>.Chunkify(int)`
- Replaced by a method of the same behaviour `IEnumerable<T>.Split(int)`
## Earlier versions
### ***Not documented***
[Unreleased]: https://github.com/oliverbooth/X10D/tree/HEAD
[2.6.0]: https://github.com/oliverbooth/X10D/releases/tag/2.6.0
2021-01-14 16:10:59 +00:00
[2.5.0]: https://github.com/oliverbooth/X10D/releases/tag/2.5.0
2020-04-21 04:42:06 +01:00
[2.2.0]: https://github.com/oliverbooth/X10D/releases/tag/2.2.0
2020-04-20 14:00:20 +01:00
[2.1.0]: https://github.com/oliverbooth/X10D/releases/tag/2.1.0
[2.0.0]: https://github.com/oliverbooth/X10D/releases/tag/2.0.0