Commit Graph

243 Commits

Author SHA1 Message Date
Oliver Booth 8c4ed9d955
Use double-precision overload of ToAxisAngle 2022-12-05 15:20:26 +00:00
Oliver Booth bac905e742
Cleanup 2022-12-05 15:19:04 +00:00
Oliver Booth 80f30b36bb
Track VP_OBJECT_DATA 2022-12-05 15:18:36 +00:00
Oliver Booth ec35a7a13d
Remove inherited Position/Rotation properties 2022-12-05 15:15:52 +00:00
Oliver Booth 33d2ffa306
Map VP_CALLBACK_OBJECT_CHANGE 2022-12-05 15:15:32 +00:00
Oliver Booth d82a4d2e5e
Add pre-execution checks 2022-12-05 01:43:40 +00:00
Oliver Booth a30f15b452
Cleanup unused import 2022-12-05 01:02:05 +00:00
Oliver Booth 2edf518e40
Move common properties to base Builder class 2022-12-05 01:01:21 +00:00
Oliver Booth 56e68dd619
Use custom Optional<T> rather than T? for optional properties 2022-12-04 19:49:08 +00:00
Oliver Booth a9a613f424
Add target object to object builder
Assign all properties in ApplyChanges
2022-12-04 19:20:24 +00:00
Oliver Booth 61bafac567
Add modification timestamp 2022-12-04 19:19:53 +00:00
Oliver Booth cb29ad10a4
Extract base object 2022-12-04 19:19:25 +00:00
Oliver Booth 83d6c8a76d
Initialize non-nullable properties 2022-12-04 19:19:11 +00:00
Oliver Booth e2423eac39
Optimize query, run cell query in parallel and await WhenAll 2022-12-04 17:42:45 +00:00
Oliver Booth da02dd83b9
Cleanup nativeevents 2022-12-04 17:42:22 +00:00
Oliver Booth fde3508fc1
Lock handle when extracting object 2022-12-04 17:42:13 +00:00
Oliver Booth 9408e2a100
ConfigureAwait(false) when enumerating objects 2022-12-04 15:39:27 +00:00
Oliver Booth e98a0662ce
Fix nullability 2022-12-04 15:39:19 +00:00
Oliver Booth d065592634
Expose internals to test projects 2022-12-04 15:33:53 +00:00
Oliver Booth 394d829e6e
catch (ChannelClosedException) 2022-12-04 15:31:51 +00:00
Oliver Booth df9a774e55
Suppress exception from closed writer
If writer is closed, the world is probably already cached. So just update its state and avatar count
2022-12-04 15:28:49 +00:00
Oliver Booth 8430783718
Remove unused revision parameter 2022-12-04 15:28:22 +00:00
Oliver Booth 9a2b841e96
Add managed<->native marshalling tests 2022-12-04 14:14:04 +00:00
Oliver Booth 20e5eebf47
stackalloc sufficient length for byte span 2022-12-04 13:57:29 +00:00
Oliver Booth 0c0866f54e
Cleanup static reference counter 2022-12-04 13:25:35 +00:00
Oliver Booth ee7d527ed8
Expose avatars publicly 2022-12-04 13:22:03 +00:00
Oliver Booth 3b4c705d7d
Add binding for avatar-specific world settings 2022-12-04 02:09:59 +00:00
Oliver Booth 6ba4569fca
Update X10D 3.2.0-nightly.144 2022-12-01 13:53:46 +00:00
Oliver Booth 335f3f8c66
Remove debug IO 2022-11-30 21:37:17 +00:00
Oliver Booth 19973e7a8a
Target .NET 7 2022-11-30 21:15:03 +00:00
Oliver Booth 3c5091e040
I don't even need to explain this one
But in case you're curious: https://en.wikipedia.org/wiki/Off-by-one_error

TL;DR I am stupid
2022-11-30 21:13:41 +00:00
Oliver Booth c7709d9b93
Validate not-null ctor args 2022-11-30 20:57:39 +00:00
Oliver Booth 5b6bbac689
Add support for dependency injection 2022-11-30 20:54:22 +00:00
Oliver Booth 55eaa4b510
Remove Scene files
This functionality will be introduced with upcoming VpSharp.Building library
2022-11-30 20:22:32 +00:00
Oliver Booth 168c6d9177
Add CLSCompliant attribute to VpSharp.Commands assembly 2022-11-30 20:18:50 +00:00
Oliver Booth ba6f6ce239
Suppress CA1506... for now... 2022-11-30 20:18:16 +00:00
Oliver Booth 1273cc2e0a
Move ExceptionMessages to res namespace 2022-11-30 20:15:46 +00:00
Oliver Booth dc6120af43
Reduce cyclomatic complexity of Coordinates.Serialization
Again just... all of it
2022-11-30 20:15:19 +00:00
Oliver Booth 2fe3c8b98e
Reduce cyclomatic complexity of VirtualParadisePathObject
Just... all of it
2022-11-30 20:14:41 +00:00
Oliver Booth 554d326819
Call ZString.CreateUtf8StringBuilder
Don't instantiate directly, let ZString handle it
2022-11-30 19:58:02 +00:00
Oliver Booth 99bda9d53f
Suppress CA1814 for revision property
revision is a contiguous array in the native SDK, which is best represented with a multidimensional array in C#
2022-11-30 19:30:56 +00:00
Oliver Booth 7d035c2c2b
Suppress CA1027 false positive
The values in this enum are - in fact - contiguous. The use of alias entries causes the analyzer to trip and be a special kind of special.

It's okay Roslyn. We still love you ❤️
2022-11-30 19:26:01 +00:00
Oliver Booth 1032313dff
Use nint keyword not IntPtr type 2022-11-30 19:24:58 +00:00
Oliver Booth 031450ca7e
Suppress CA2101 false positive
Strings are marshalled using a custom marshaller, this does not apply
2022-11-30 19:24:44 +00:00
Oliver Booth 8faf25c315
Specify DefaultDllImportSearchPaths
This also suppresses a false positive CA5393
2022-11-30 19:24:18 +00:00
Oliver Booth ed589508b2
Add NotInWorldException 2022-11-30 19:09:24 +00:00
Oliver Booth 74ddc12f9d
Rename Native - > NativeMethods 2022-11-30 19:09:01 +00:00
Oliver Booth 0f0d756925
Use human-friendly ToString returns 2022-11-30 19:07:40 +00:00
Oliver Booth 00551e7777
Add received world to hot cache 2022-11-30 19:04:54 +00:00
Oliver Booth 304b043c98
Code cleanup 2022-11-30 19:04:43 +00:00