Commit Graph

78 Commits

Author SHA1 Message Date
Oliver Booth 5ff521073c
fix: suppress CA5394
This analysis warning is irrelevant. We're making extension methods here, dammit! This will be the consumer's responsibility to worry about.
2023-04-11 17:04:09 +01:00
Oliver Booth ac499537ed
feat: add RaycastHit.GetComponent and RaycastHit.TryGetComponent 2023-04-11 16:58:16 +01:00
Oliver Booth a8ebe9c902
fix: fix issue with GetComponentsInChildrenOnly checking wrong Transform 2023-04-10 13:42:12 +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 a4a1d3b13a
fix: only copy Unity-serialized members 2023-04-07 13:09:07 +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 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 86f72b9d43
build: bump to 4.0.0 2023-04-03 18:14:03 +01:00
Oliver Booth e2a608f11d
build: output debug symbols for all projects (#75) 2023-04-02 17:06:18 +01:00
Oliver Booth ceaa254d7a
docs/perf: throw for null input 2023-04-02 03:12:04 +01:00
Oliver Booth 3d69cf362d
fix: CLSCompliant(false) for X10D.Unity 2023-04-02 03:11:22 +01:00
Oliver Booth 7e7825a170
fix: suppress CA1000
This analyzer warning does not apply here.
2023-04-02 03:10:58 +01:00
Oliver Booth bc3dedfa7d
fix: rename DebugEx to DebugUtility
Prevents .NET analysers from throwing errors.
2023-04-02 03:10:36 +01:00
Oliver Booth bfd3a5663d
[ci skip] ci: enable .NET analyzers for all projects 2023-04-02 01:11:14 +01:00
Oliver Booth ee0df8c9c2
[ci skip] docs: vertically center Unity branding 2023-03-31 23:06:48 +01:00
Oliver Booth 150028716c
[ci skip] fix(docs): rename master -> main
This change was made quite a while ago, actually. Surprisingly, it's gone unnoticed for a long time. 

"Nevermore," quoth the raven.
2023-03-31 23:02:56 +01:00
Oliver Booth 4cfa7fef52
[ci skip] fix(docs): fix CONTRIBUTING.md link 2023-03-31 23:01:19 +01:00
Oliver Booth 83f9737b02
[ci skip] docs(repo): add tailored README for X10D.Unity 2023-03-31 22:57:09 +01:00
Oliver Booth 78f2c13a1b
style: update branding
The icon is now exported from vector artboards rather than a raster.
2023-03-31 22:22:52 +01:00
Oliver Booth 9ee99d72d3
[ci skip] style: upgrade projects to C# 11
NB: While using a higher C# version with lower framework version is possible, it's generally advised against because C# syntax may map to .NET types not available in older versions such as .NET Standard 2.1.

This change does not invite the codebase to upgrade to newer types, but rather take advantage of syntax sugar (such as file-scoped namespaces, when this project was updated to C# 10) that does not effect the compiled result.

However, this change does open up the possibilities to add extension methods for the "generic math" interfaces (made possible by static interface members), and these upcoming methods will be targeted to .NET 7 or greater **ONLY**.
2023-03-31 17:30:30 +01:00
Oliver Booth 4dd31ec1b6
[ci skip] style: reformat & cleanup solution 2023-03-29 17:46:56 +01:00
Oliver Booth a09492d418
perf: use UnsafeUtility for Unity<->System conversions 2023-03-29 00:14:49 +01:00
Oliver Booth e3dcad5690
build(nupkg): use MSBuildProjectDirectory and go up 1 level
SolutionDir macro is returning empty/null in workflow, causing a job failure since CHANGELOG.md is not in root.

this may or may not fix the workflow. tba
2023-03-28 15:11:09 +01:00
Oliver Booth 2cb6567410
build(nupkg): add PackageReleaseNotes to csproj 2023-03-28 14:27:15 +01:00
Oliver Booth a685d6ec39
Merge branch 'develop' into main 2023-03-07 17:30:15 +00:00
RealityProgrammer e1a7ac03c6 Added SpanExtensions and the reinterpret between Unity's structs to System.Numerics structs 2023-03-06 06:49:07 +07:00
Oliver Booth 384ec3f61c
[ci skip] Set ContinuousIntegrationBuild to true for CI builds 2023-02-05 13:51:58 +00:00
Oliver Booth ea51adc632
Cache Singleton<T> instance on Awake 2022-12-31 14:49:32 +00:00
Oliver Booth dcbe591d66
[X10D.Unity] Add various yield instructions 2022-07-14 12:00:55 +01:00
Oliver Booth 3a5b017a72
Add Color.Deconstruct 2022-07-13 14:35:56 +01:00
Oliver Booth c0395feba3
Add GetClosestConsoleColor (#66) 2022-07-13 14:18:12 +01:00
Oliver Booth 46bfa17b93
Add vector and point component rounding (#65) 2022-07-13 12:09:37 +01:00
Oliver Booth 7231c41466
[ci skip] Fix source validation errors 2022-07-08 13:08:24 +01:00
Oliver Booth 02cc897426
Add Point.IsOnLine (#64) 2022-06-29 17:55:04 +01:00
Oliver Booth 519673d7ce
Rename sides parameter to segments 2022-06-03 12:11:34 +01:00
Oliver Booth a4b6033b94
Fix langword cref in xmldoc 2022-06-03 12:10:43 +01:00
Oliver Booth 5be42fea5a
Remove DebugEx partials into subfolder 2022-06-03 10:37:03 +01:00
Oliver Booth e9e081b220
Add Bounds overload to DebugEx.DrawWireCube 2022-06-02 12:18:03 +01:00
Oliver Booth a8d3ac96ca
Fix wording in xmldoc for DebugEx.DrawWireCube 2022-06-02 12:17:47 +01:00
Oliver Booth 75b79589e8
Remove Box2D struct, use built in Rect(angle/F) 2022-06-02 12:15:04 +01:00
Oliver Booth 96170eac6f
Remove Box struct, use custom Cuboid, rename Box to WireCube 2022-06-02 12:14:16 +01:00
Oliver Booth 32485b727a
Add DebugEx class 2022-06-01 19:00:36 +01:00
Oliver Booth eaa88ce11a
Add Polygon/Polyhedron extension methods for Unity vector types 2022-06-01 18:38:14 +01:00
Oliver Booth 43a155ad90
Add Vector2/3Int.ToSystemVector 2022-06-01 18:37:33 +01:00
Oliver Booth b0cce087b3
Add additional ctor overloads for Ellipse/F 2022-06-01 17:05:25 +01:00
Oliver Booth 74af813d78
Add RectInt conversions 2022-06-01 11:06:24 +01:00
Oliver Booth 5d63560146
Marked Singleton<T> obsolete
This pattern is discouraged.

... I regret adding it.
2022-05-31 11:52:59 +01:00
Oliver Booth 28dd88cf0a
Add Vector2/3Int method parity
* Added Vector2/3Int.Deconstruct
* Added Vector2/3Int.WithX
* Added Vector2/3Int.WithY
* Added Vector3Int.WithZ
* Added Vector2Int.ToSystemPoint
* Added Vector2Int.ToSystemSize
2022-05-31 11:41:29 +01:00
Oliver Booth f35f398d7f
Add conversions between Size(F)/Point(F)/Vector and Rect/Rectangle(F) 2022-05-28 14:19:46 +01:00
Oliver Booth 5aea71465a
Add UnityEngine/System.Drawing color conversions 2022-05-16 10:41:53 +01:00