Commit Graph

7497 Commits

Author SHA1 Message Date
MrGadget1024
fddcd76228 Ninja Material 2023-02-17 17:40:41 -05:00
MrGadget1024
994fe40d25 Ninja UI 2023-02-17 17:40:21 -05:00
MrGadget1024
7c211b19fc PlayerNinja Color 2023-02-17 17:11:34 -05:00
MrGadget1024
99c8ce16c8 Prefabs 2023-02-17 17:09:04 -05:00
MrGadget1024
545cefd1c2 Added Ninja options 2023-02-17 17:03:28 -05:00
MrGadget1024
c05e2d6991 Fixed Apply override 2023-02-17 16:16:52 -05:00
MrGadget1024
931ec63170 Merged master 2023-02-17 16:14:55 -05:00
Robin Rolf
94bb3690ae
fix: NetworkBehaviour SyncVar uses netId lookup (#3386)
* fix: NetworkBehaviour SyncVar uses netId lookup

Not only types derived from NetworkBehaviour
Fixes #2939

* Update Assets/Mirror/Editor/Weaver/Extensions.cs

* Update Assets/Mirror/Editor/Weaver/Processors/NetworkBehaviourProcessor.cs

* Update Assets/Mirror/Editor/Weaver/Processors/SyncVarAttributeProcessor.cs

* Update Assets/Mirror/Editor/Weaver/Processors/SyncVarAttributeProcessor.cs

* Update Assets/Mirror/Editor/Weaver/Processors/SyncVarAttributeProcessor.cs

* Update Assets/Mirror/Editor/Weaver/Readers.cs

* Update Assets/Mirror/Editor/Weaver/Writers.cs

---------

Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
2023-02-17 12:09:53 +01:00
MrGadget1024
5784ff6d8a script icons 2023-02-16 21:55:50 -05:00
MrGadget1024
4f1a1899aa Extensions - updated comment 2023-02-16 09:07:55 -05:00
MrGadget1024
2f2a6907de Extenstions - Added comment to GetStableHashCode 2023-02-16 09:04:43 -05:00
MrGadget1024
2d06bd7d42 Revert "Semantic.yml - only master branch"
This reverts commit bb54f263f1.
2023-02-16 08:30:08 -05:00
MrGadget1024
adafd484d7 Fixed log msg 2023-02-16 08:27:11 -05:00
MrGadget1024
e4281fe5bf fix: fixed warning in test 2023-02-16 08:20:01 -05:00
MrGadget1024
9e0c59526c fix: Extensions - Remove static StableHashes dictionary
- Now that all callers to GetStableHashCode are either one-timers or design-time (weaver) the dictionary is no longer needed.
2023-02-16 08:19:48 -05:00
Robin Rolf
5d6022ff19
Remove outdated comment (#3385) 2023-02-16 13:21:01 +01:00
Robin Rolf
8b7bc6858f
perf: Weave in pre-computed function hash for RPCs (#3384)
* perf: Weave in pre-computed function hash for RPCs

Instead of computing it at runtime for every call
See #3381, #3377 and #3375

* Update Assets/Mirror/Editor/Weaver/Processors/CommandProcessor.cs

* Update Assets/Mirror/Editor/Weaver/Processors/RpcProcessor.cs

* Update Assets/Mirror/Editor/Weaver/Processors/TargetRpcProcessor.cs

---------

Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
2023-02-16 13:01:03 +01:00
Robin Rolf
b933dcbe1a
feat: InterestManagementBase (#3379)
* feat: InterestManagementBase

A interest management base class that allows more advanced interest management by bypassing the built-in HashSet checks via Rebuild overriding

* Update Assets/Mirror/Core/InterestManagementBase.cs

---------

Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
2023-02-16 12:57:31 +01:00
MrGadget1024
bb54f263f1 Semantic.yml - only master branch 2023-02-16 06:49:24 -05:00
Robin Rolf
c2d834315c
cleanup: move observer HashSet rebuild logic to IM (#3383)
This cleanup step prepares for InterestManagement classes being able to customize the rebuild logic, but for that we should move it out of the NetworkServer class
2023-02-16 12:11:54 +01:00
JesusLuvsYooh
e0e262678b
feature: NetworkTransform interpolation can be disabled (#3378)
* Interpolation off bools for NetworkTransform.

Gives a snap-like effect to position, rotation and scaling.

* Update Assets/Mirror/Components/NetworkTransformBase.cs

* Update NetworkTransformBase.cs

---------

Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
2023-02-16 04:19:02 +01:00
Robin Rolf
569938c8c7
perf: Use static generic class to cache message id (#3381)
* perf: Use static generic class to cache message id

we can (ab)use c# generics to cache the message id in a static field
this is significantly faster than doing a runtime Dictionary lookup in my testing (16% thread cpu-> ~0.22% for 121 moving nts)
generic classes have separate static fields per type specification, so we can store things per-type there, exactly what we need!

* Obsolete NetworkMessages.GetId

* Update Assets/Mirror/Core/NetworkMessages.cs

* Copy comment from GetId up to the Id field

* wording

---------

Co-authored-by: MrGadget <9826063+MrGadget1024@users.noreply.github.com>
2023-02-15 16:39:25 +01:00
Robin Rolf
1b4cc63c2e Correct send rate in bot name 2023-02-14 19:59:52 +01:00
Robin Rolf
dd2151b582 /ssl and /nossl args 2023-02-14 19:40:42 +01:00
Robin Rolf
9184938671 OfflineWeb scene instead of Kcp
This is the webgl branch after all
2023-02-14 18:45:20 +01:00
Robin Rolf
39faecc911 /h: command line arg 2023-02-14 18:45:05 +01:00
MrGadget1024
7e693c93d1 bots setup 2023-02-14 07:10:24 -05:00
MrGadget1024
b53892e2de Latest 2023-02-14 06:52:58 -05:00
MrGadget1024
31349c708c Merged master 2023-02-14 03:51:38 -05:00
MrGadget
59dc88c981
perf: Cache Stable Hashes (#3377)
* perf: Cache Stable Hashes
- Static dictionary of message hashes
- ResetStatics

* Added debug log for future debugging.

* Update Extensions.cs

---------

Co-authored-by: mischa <16416509+vis2k@users.noreply.github.com>
2023-02-14 02:45:36 +01:00
MrGadget1024
98212c5617 RunUnityTests - unityVersion 2022.2.6f1 2023-02-13 04:44:56 -05:00
MrGadget1024
d1e263acac Merged master 2023-02-13 04:35:50 -05:00
MrGadget1024
6a506b0abe WebGL 2023-02-13 04:34:39 -05:00
JesusLuvsYooh
adc28267f7 Updated function name in code summary. 2023-02-12 16:19:43 +00:00
MrGadget1024
456e7eefdd Latest 2023-02-12 07:52:50 -05:00
MrGadget1024
a0034fb01c Player prefab 2023-02-11 20:48:53 -05:00
MrGadget1024
f41f03833b Bot Test 2023-02-11 19:31:03 -05:00
MrGadget1024
948defd3ec WIP 2023-02-10 16:11:14 -05:00
MrGadget1024
2d82d91967 Merged master 2023-02-10 06:49:33 -05:00
MrGadget1024
6bea6e26bd Revert "main.yml - exclude Docs folder"
This reverts commit 1a3e440294.
2023-02-10 06:02:43 -05:00
MrGadget1024
1a3e440294 main.yml - exclude Docs folder 2023-02-10 04:48:31 -05:00
MrGadget1024
2088b46b59 SWT logging 2023-02-10 04:47:21 -05:00
MrGadget1024
578c01ea31 OfflineWeb 2023-02-10 04:47:09 -05:00
MrGadget1024
e93dea4dfa Merged master 2023-02-09 11:27:33 -05:00
MrGadget1024
80211ba827 fix: NetworkRoomManager.ReadyStatusChange is now a virtual method
- Script Template updated accordingly.

Fixes #1889
2023-02-09 11:21:06 -05:00
MrGadget
e260d1eb2a
fix: NetworkWriter - Change MaxStringLength to ushort.MaxValue (#3374)
* fix: NetworkWriter - Change MaxStringLength to ushort.MaxValue
- local `realsize` in NetworkReaderExtensions.ReadString changed to ushort with proper casting
- Comments added to NetworkWriterExtensions
- Comments added to NetworkReaderExtensions
- Log output updated in both for consistency

* Added comment

* Changes per request
2023-02-09 09:24:03 -05:00
MrGadget
9f7ed98ccc
feat: Read / Write DateTime (#3373)
* feat: Read / Write DateTime
- no UTC conversion...users can do that on their own if they want / need to.

DateTime is a public struct but has no public fields (all properties) so no error is thrown if users try to use it in SyncVar / Cmd / Rpc / NetMsg, but no value is put on the wire and SyncVar hooks don't fire because the client determines no actual value change.

* Added nullable DateTime support

* Removed mysterious using
2023-02-09 09:25:57 +01:00
MrGadget1024
085b531963 RunUnityTests unityVersion 2021.3.18 2023-02-08 17:32:19 -05:00
MrGadget1024
607d61406a Merged master 2023-02-08 10:16:47 -05:00
MrGadget1024
efeab67331 NetworkRoomManager - refactor CheckReadyToBegin 2023-02-08 10:05:01 -05:00