vis2k
84cf753f19
Remove Uri support
2020-09-30 11:09:30 +02:00
vis2k
bd0a00fcb9
Remove Obsolete
2020-09-30 11:09:29 +02:00
vis2k
0a2555c700
Fix rebase
2020-09-30 11:09:29 +02:00
vis2k
5e2a968abb
Force NetworkMessage as struct everywhere
2020-09-30 11:09:29 +02:00
vis2k
6baaa1d75e
IMessageBase renamed to NetworkMessage
2020-09-30 11:09:29 +02:00
vis2k
a565c7c33c
Remove NetworkMessage class support
2020-09-30 11:09:29 +02:00
vis2k
4d4e507847
Remove ClientScene.spawn/unspawnHandlers
2020-09-30 11:09:29 +02:00
vis2k
b44481767b
Remove ClientScene.Register/UnregisterSpawnHandler
2020-09-30 11:09:29 +02:00
vis2k
6b2cd3aefa
Remove ClientScene.RegisterPrefab with assetId, Spawn/UnspawnDelegate
2020-09-30 11:09:29 +02:00
vis2k
c54be229a8
Remove ClientScene.RegisterPrefab with Spawn/UnspawnHandlerDelegate
2020-09-30 11:09:29 +02:00
vis2k
0aeb13a8af
Remove ClientScene.RegisterPrefab with spawn/unspawnHandler
2020-09-30 11:09:29 +02:00
vis2k
9682a9a7e5
Remove ClientScene.RegisterPrefab with newAssetId
2020-09-30 11:09:29 +02:00
vis2k
8a190282aa
fix rebase
2020-09-30 11:09:29 +02:00
vis2k
73e16f3aeb
Remove ClientScene.onLocalPlayerChanged
2020-09-30 11:09:29 +02:00
vis2k
09800e6127
Remove ReplacePlayerForConnection
2020-09-30 11:09:29 +02:00
vis2k
139950ea4e
Remove Host Mode
2020-09-30 11:09:29 +02:00
vis2k
f82d7c7abc
Remove Transform/GameObject sync to avoid GetComponent calls. Use NetworkIdentity instead.
2020-09-30 11:09:29 +02:00
vis2k
717ad1e39f
Forgot to comment out a debug log
2020-09-30 11:09:29 +02:00
vis2k
1d5e4f317c
Remove NetworkDiagnostics
2020-09-30 11:09:29 +02:00
vis2k
a2c5e1bf12
Read/WritePacked call the regular functions
2020-09-30 11:09:29 +02:00
vis2k
10b797a8ba
Use Write/Read without Packed everywhere
2020-09-30 11:09:29 +02:00
vis2k
faa0c1264f
Write/ReadPacked methods obsoleted
2020-09-30 11:09:29 +02:00
vis2k
3bf5a7ee4b
Remove old file
2020-09-30 11:09:29 +02:00
vis2k
907a19d322
Remove unused import
2020-09-30 11:09:29 +02:00
vis2k
91f987c91e
Remove Obsoletes
2020-09-30 11:09:29 +02:00
vis2k
47c42d870e
Remove Performance Tests
2020-09-30 11:09:29 +02:00
vis2k
5a8c822683
Remove LogFactory
2020-09-30 11:09:29 +02:00
vis2k
8901da0683
Remove empty files
2020-09-30 11:09:29 +02:00
vis2k
a7244cfbc8
Remove Websocket Transport
2020-09-30 11:09:29 +02:00
vis2k
ba21719ffd
Remove MultiplexTransport, FallbackTransport
2020-09-30 11:09:29 +02:00
vis2k
403d5b3cae
Remove LLAPITransport
2020-09-30 11:09:29 +02:00
vis2k
dc89c754d9
Remove NetworkPingDisplay
2020-09-30 11:09:29 +02:00
vis2k
5398956dac
Remove NetworkAnimator
2020-09-30 11:09:29 +02:00
vis2k
8679e40c41
Remove NetworkMatchChecker
2020-09-30 11:09:29 +02:00
vis2k
3aa380419b
Remove NetworkSceneChecker
2020-09-30 11:09:29 +02:00
vis2k
b59786c9c4
Remove Components/Lobby, Room
2020-09-30 11:09:29 +02:00
vis2k
2621dee0be
Remove Components/Experimental
2020-09-30 11:09:29 +02:00
vis2k
c01158b563
Remove Components/Discovery
2020-09-30 11:09:29 +02:00
vis2k
2f552b7ca0
Remove Authenticators
2020-09-30 11:09:29 +02:00
vis2k
a1c8b62956
Remove Room
2020-09-30 11:09:29 +02:00
vis2k
f245e50a03
Remove AdditiveScenes
2020-09-30 11:09:29 +02:00
vis2k
3be9800210
Remove MultipleAdditiveScenes
2020-09-30 11:09:29 +02:00
vis2k
88e72a6cdb
Remove Basic
2020-09-30 11:09:29 +02:00
vis2k
11dedd3519
Remove RigidbodyPhysics
2020-09-30 11:09:29 +02:00
vis2k
2a428879cc
Remove Discovery
2020-09-30 11:09:29 +02:00
vis2k
99f746ed54
Remove Cloud
2020-09-30 11:09:29 +02:00
vis2k
ae95b0625d
revert
2020-09-30 11:09:12 +02:00
vis2k
7fa8345b85
wtf
2020-09-30 11:02:27 +02:00
Paul Pacheco
16864f9ff0
It is fine to serialize empty struct
2020-09-29 21:26:53 -05:00
Paul Pacheco
0267dbe1f2
feat: support Jagged arrays
...
simplify the code for checking for multidimentional arrays
and lift the restriction on jagged arrays
2020-09-29 21:21:16 -05:00
Paul Pacheco
5e2d87685b
Generated class does not need constructor
2020-09-29 15:22:21 -05:00
Paul Pacheco
c720055bce
remove empty blocks
2020-09-29 12:26:24 -05:00
Paul Pacheco
7ca08924b5
Remove unused meta
2020-09-29 12:16:21 -05:00
Paul Pacheco
0132697513
Simplify obj initialization
2020-09-29 12:15:26 -05:00
Paul Pacheco
88ece20e68
Simplify IsDerivedFrom
2020-09-29 12:01:49 -05:00
Paul Pacheco
9889ed4f9c
Remove unnecesary lists from WeaverLists
2020-09-29 11:22:46 -05:00
Paul Pacheco
8dbf46720e
fix: generic arguments resolution ( #2300 )
...
* fix: generic arguments lookup
The weaver was not able to figure out the synclist type in code like this:
```cs
public class SomeList<G, T> : SyncList<T> { }
public class SomeListInt : SomeList<string, int> { }
```
This code fixes that problem, and greatly reduces the complexity
of argument lookup.
* linting
2020-09-29 09:39:17 -05:00
vis2k
720a06ea70
MessagePacker.Pack<T> to byte[] moved out of MessagePacker and into MessagePackerTest to simplify code. It's only used in tests anyway.
2020-09-29 11:54:07 +02:00
vis2k
c947bc03e6
MessagePacker.GetId<T> reuses GetId(Type)
2020-09-29 10:55:02 +02:00
Cooper Saye
aba69ca4d0
fix: typos ( #2297 )
2020-09-29 09:16:30 +02:00
Paul Pacheco
bdb6ca07d2
linting
2020-09-28 23:11:50 -05:00
Paul Pacheco
3103266b44
space linting
2020-09-28 22:49:36 -05:00
Paul Pacheco
3e2c3f8ccc
Refactor reading array segment ( #2296 )
...
* Refactor reading array segment
Just deserialize the array and transform to array segment
* Fix comment
* Fix invalid IL
2020-09-28 22:43:44 -05:00
Paul Pacheco
59bc83f997
Fix more comments
2020-09-28 22:42:34 -05:00
Paul Pacheco
fe1064ce0b
Remove redundant InitLocals
2020-09-28 22:37:25 -05:00
Paul Pacheco
53452cc003
Fix comments
2020-09-28 22:37:25 -05:00
Paul Pacheco
5c4d8a27cc
Refactor writer for loops ( #2294 )
...
* Refactor writer for loops
* Remove unused variable
2020-09-28 22:37:25 -05:00
Paul Pacheco
fe2adc8d59
Deduplicate null check ( #2295 )
2020-09-28 22:37:25 -05:00
Paul Pacheco
0aea48cf06
Linting
2020-09-28 22:14:54 -05:00
Paul Pacheco
b9550cf6d3
Linting
2020-09-28 22:14:09 -05:00
Paul Pacheco
4ec84df494
Reuse checking for null ( #2293 )
2020-09-28 21:32:43 -05:00
Paul Pacheco
66be588512
reuse ReadLength ( #2292 )
2020-09-28 21:32:16 -05:00
Paul Pacheco
7c2a6595eb
refactor reader for loops ( #2291 )
...
* Fix comments
* refactor for loops
* Cleanup a bit
2020-09-28 21:29:52 -05:00
Paul Pacheco
69161144a0
Fix comments
2020-09-28 21:02:53 -05:00
Paul Pacheco
4a710b2eea
Add some comments
2020-09-28 20:44:18 -05:00
Paul Pacheco
86df5954ac
Add some comments
2020-09-28 20:32:38 -05:00
Paul Pacheco
3ccb7d9da4
feat: Support recursive data types ( #2288 )
...
Remove all the recursionCount nonsense.
This was added to prevent infinite recursion with types that reference themselves.
No need to check anymore, the weaver can generate readers and writers for types that reference themselves such as:
```cs
class Tree {
Tree child1;
Tree child2;
}
```
This works by the weaver doing it the way the compiler does: Create a function first, memoize it, then write the body. If the body needs the function, it will get itself and issue a call to itself.
2020-09-28 20:18:56 -05:00
Paul Pacheco
513a0f9945
feat: support null when serializing classes ( #2290 )
2020-09-28 19:55:29 -05:00
Paul Pacheco
fe641adae8
Refactor writer function generation ( #2289 )
2020-09-28 17:07:16 -05:00
Paul Pacheco
6fc5a4effc
remove TODO comment
2020-09-28 16:43:48 -05:00
Paul Pacheco
7aa47f14be
Simplify reader registration
2020-09-28 15:52:36 -05:00
Paul Pacheco
2dc280d292
Refactor reader function generation
2020-09-28 15:50:40 -05:00
Paul Pacheco
fe061ac792
Simplify generated writer name
2020-09-28 15:32:06 -05:00
Paul Pacheco
5e78e27c8f
Simplify generated reader name
2020-09-28 15:09:19 -05:00
Paul Pacheco
664d5f7f99
Generate reader and writer functions for enums ( #2283 )
...
Currently, whenever we want to serialize an enum,
we simply serialize the underlying type (byte, short, int)
This works fine, but in order to get the reader and writer
at runtime I need a function for each type.
With this PR, we generate a reader and writer function for enums too,
the function body simply calls the underlying reader and writer.
2020-09-28 14:51:13 -05:00
James Frowen
fa059b59bf
Squashed ( #2187 )
...
* throwing Exception instead of returning null
* re-adding null check until later PR
* removing error from test
* removing extra error
* adding comment
* replacing error with throw for abstact
2020-09-28 21:29:10 +02:00
James Frowen
796aa3baf8
moving WeaverLists functions to WeaverLists ( #2285 )
...
The plan is to remove WeaverLists at some point so moving the functions
out of weaver to here for now and then move them closer to where they
are actaully used when we start to remove WeaverLists.
2020-09-28 21:21:30 +02:00
Paul Pacheco
694de7255b
Cannot use generics as declared reader and writers
2020-09-28 09:17:33 -05:00
Paul Pacheco
f9ecc64468
Simplify type check
2020-09-28 09:13:25 -05:00
Paul Pacheco
b0d1d9aac0
Rename method for clarity
2020-09-28 08:52:15 -05:00
Paul Pacheco
59566588b1
Simplify type check
2020-09-28 07:39:03 -05:00
Paul Pacheco
54f96309da
Simplify type check
2020-09-28 07:38:24 -05:00
vis2k
9077cc7fd7
Add comments
2020-09-27 18:51:23 +02:00
James Frowen
8b3e509c3b
Update Transport.cs
2020-09-23 16:52:11 +01:00
James Frowen
bdd81e33ba
fix: fixing new import
...
see https://github.com/vis2k/Mirror/pull/2259
2020-09-23 16:30:32 +01:00
Paul Pacheco
a0aecf11fb
Linting
2020-09-22 13:07:03 -05:00
Paul Pacheco
25b2fa9af8
KISS
2020-09-22 13:03:33 -05:00
Paul Pacheco
c868561822
Remove passthrough method
2020-09-22 12:49:38 -05:00
Paul Pacheco
3fec9ec880
Remove static weaver state
2020-09-22 12:33:48 -05:00
Paul Pacheco
116336fbf1
Remmove passthrough method
2020-09-22 12:33:18 -05:00