Commit Graph

1219 Commits

Author SHA1 Message Date
Oliver Booth ac499537ed
feat: add RaycastHit.GetComponent and RaycastHit.TryGetComponent 2023-04-11 16:58:16 +01:00
Oliver Booth b70b704b63
Merge branch 'develop' into main 2023-04-10 13:54:05 +01:00
Oliver Booth b2e4092ca7
[ci skip] docs: remove addition of component copy/move 2023-04-10 13:50:44 +01:00
Oliver Booth 98cd96d5cb
fix(test): fix malformed test
The child was not being assigned a new parent, causing GetComponentsInChildrenOnly to return empty array and the subsequent line:

Assert.That(components, Has.Length.EqualTo(1));

was resulting in a test fail.
2023-04-10 13:45:39 +01:00
Oliver Booth f4d6c9083b
refactor(test): remove lingering IEnumerator test
Remant from 0b5bb074c8
2023-04-10 13:44:37 +01:00
Oliver Booth a8ebe9c902
fix: fix issue with GetComponentsInChildrenOnly checking wrong Transform 2023-04-10 13:42:12 +01:00
Oliver Booth 0b5bb074c8
refactor(test): remove IEnumerator tests
Use synchronous NUnit tests
2023-04-10 13:38:56 +01:00
Oliver Booth 77ab429f72
refactor: remove Copy/Move component functionality
This may be returned at a later point.
2023-04-10 13:26:38 +01:00
Oliver Booth 844f697754
style: remove unused using directives 2023-04-10 12:45:18 +01:00
Oliver Booth f6847315a1
feat: add Progress<T>.OnProgressChanged
Provides a mechanism to wrap the ProgressChanged event of a Progress<T> as an IObservable<T>.
2023-04-10 12:44:53 +01:00
Oliver Booth a4a1d3b13a
fix: only copy Unity-serialized members 2023-04-07 13:09:07 +01:00
Oliver Booth ad2d33aa88
style(test): use constraint API for length check 2023-04-07 01:34:34 +01:00
Oliver Booth dc6d984fa8
test: suppress ReSharper.Unity.InefficientPropertyAccess
This is false positive being thrown by the analyzer. The values are - in fact - changing before being read each time.
2023-04-07 01:34:08 +01:00
Oliver Booth 420ec2433a
feat: add Component move/copy
As usual, experimental API - subject to change.
2023-04-07 01:21:56 +01:00
Oliver Booth 1fe2a26b7f
Merge branch 'develop' into main 2023-04-06 19:23:58 +01:00
Oliver Booth 75ac9e2d8f
chore: add MetaServices to sln 2023-04-06 19:22:27 +01:00
Oliver Booth 57ff32ee94
[ci skip] docs: add comment explaining my absolute pain 2023-04-06 19:18:20 +01:00
Oliver Booth 9d26f3da60
feat: add TextWriter.WriteNoAlloc/WriteLineNoAlloc
Allows writing of integer types without allocating a string.
2023-04-06 19:11:54 +01:00
Oliver Booth ce35f8676e
chore: make attributes internal 2023-04-06 17:05:37 +01:00
Oliver Booth 7556efdfdd
chore: add AutoOverload and OverloadType attribute 2023-04-06 17:00:39 +01:00
Oliver Booth 172380c57d
[ci skip] chore: add meta services
This class library will contain attributes for future source generation.
2023-04-06 16:58:38 +01:00
Oliver Booth 0ca8253402
chore: remove X10D prefix from sourcegen 2023-04-06 16:05:02 +01:00
Oliver Booth 5289bd2595
chore: move SourceGenerator to tools folder 2023-04-06 16:03:20 +01:00
Oliver Booth 9791fd23bb
feat: add CountDigit for integer types 2023-04-06 14:40:27 +01:00
Oliver Booth 71b4ac5337
Merge branch 'develop' into main 2023-04-06 02:32:01 +01:00
Oliver Booth 0621c246a0
feat: add Span<T>.Replace 2023-04-06 02:31:22 +01:00
Oliver Booth bafc327ee6
chore: add benchmarks project 2023-04-06 02:30:17 +01:00
Oliver Booth 8e6796607c
docs: explain use of ref return 2023-04-05 23:19:08 +01:00
Oliver Booth 4a0e3c10d7
test: return coverage to 100% (#76) 2023-04-05 23:18:14 +01:00
Oliver Booth fcdcf54aa3
test: use NUnit constraint API in X10D.Unity.Tests (#76) 2023-04-05 22:51:59 +01:00
Oliver Booth 744f5e906b
test: remove redundant quality checks (#76) 2023-04-05 22:51:59 +01:00
Oliver Booth dbeb13efcd
test: fix expected/actual value swap (#76) 2023-04-05 22:51:59 +01:00
Oliver Booth ab62db2b37
chore: switch from MSTest to NUnit (#76) 2023-04-05 22:51:59 +01:00
Oliver Booth 5d2313fa20
test: replace playmode tests with NUnit tests (#76)
Using yield break; in a coroutine which does not need to be one, that's a paddlin'.
2023-04-05 22:51:59 +01:00
Oliver Booth e84eef60e6
chore: suppress tfm support build warnings 2023-04-05 17:37:26 +01:00
Oliver Booth 21271314af
feat: add generic math where possible in MathUtility 2023-04-05 17:36:49 +01:00
Oliver Booth b91aad6305
feat: convert DigitalRoot and Mod to generic math 2023-04-05 15:35:25 +01:00
Oliver Booth b819e6a418
refactor: revert 47f3a138aa
Generic math features will be built in a feature branch to avoid merge conflicts with develop.
2023-04-05 15:13:21 +01:00
Oliver Booth 87a85b82d9
feat: add Unpack for IBinaryInteger<T>
This introduces an experiment, to add support for generic math in X10D. So far, build and tests remain passing - this is a good sign. There is potential here.

This API is subject to change and may be removed without warning.
2023-04-05 15:11:43 +01:00
Oliver Booth 47f3a138aa
feat: add Unpack for IBinaryInteger<T>
This introduces an experiment, to add support for generic math in X10D. So far, build and tests remain passing - this is a good sign. There is potential here.

This API is subject to change and may be removed without warning.
2023-04-05 15:06:02 +01:00
Oliver Booth 3ab1ab0b41
style: remove redundant CLSCompliant on internal methods 2023-04-05 13:42:02 +01:00
Oliver Booth 512445793e
build: move meta tools to subdir 2023-04-05 11:21:58 +01:00
Oliver Booth 65d8242f5c
Merge branch 'develop' into main 2023-04-05 11:09:30 +01:00
Oliver Booth dc1b9d6c04
feat: add math extensions for BigInteger 2023-04-05 11:05:53 +01:00
Oliver Booth d09ea69e13
[ci skip] docs: update upm stable in README 2023-04-04 21:25:56 +01:00
Oliver Booth 5e4af9a9e1
style: move MethodImplOptions to resource file
Prevents repetition through #if directives in every file
2023-04-04 10:34:16 +01:00
Oliver Booth b8c3a5121a
feat: add DateOnly extensions 2023-04-04 10:10:55 +01:00
Oliver Booth c2bb08a9f3
ci: run dotnet workflow for develop 2023-04-03 18:21:21 +01:00
Oliver Booth a717976229
style!: rename parameter for DateTime.Age and DateTimeOffset.Age
BREAKING CHANGE: "asOf" has been renamed to "referenceDate". Consumers using named parameters beware.
2023-04-03 18:20:21 +01:00
Oliver Booth 713c55a5b4
docs: update version in CHANGELOG 2023-04-03 18:17:40 +01:00