Commit Graph

2345 Commits

Author SHA1 Message Date
Paul Pacheco
74faf2a95b fix: missed ushort reader/writer 2019-09-02 12:17:56 -05:00
MrGadget
68ce6327bc Updated Pong 2 (#982)
* Turned off Simulated & Set Transform Interval to zero

* Set sync interval to zero

* Removed ballPrefab field

* Cached RigidBody & simplified FixedUpdate

* Cached RigidBody and Moved Start code to OnStartServer

* Scene file updated

* Updated Scene file again

* Moved comments and fixed typos

* Eliminated GetComponent in code

* Assigned Rigidbody2d in inspector of prefabs
2019-09-02 19:06:04 +02:00
Paul Pacheco
b45afad641 feat: custom reader/writer via extension methods (#1047)
* Remove hardcoded writers from weaver

* Remove hardcoded readers from weaver

* Remove unused stuff

* cleanups

* Cleanup some comments

* remove unused import

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

* Improve comments a bit

* small cleanups

* Remove redundant private keyword

* Remove unnecesary blank space

* Remove unused field

* Measure how long it takes to find the readers and writers

* Find all extension methods for readers and writers

* Get rid of debugging log

* Don't comment obvious stuff

* Don't swallow exception

* only scan static classes for extension methods

* Add unit test for custom readers and writers

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

* Update Assets/Mirror/Runtime/NetworkWriterExt.cs

* Update ReaderWriterProcessor.cs

* Renamed to avoid abreviations

* Move the extensions inside the same .cs

* Update NetworkReader.cs

* Update NetworkWriter.cs
2019-09-02 18:57:45 +02:00
Paul Pacheco
e0b66db335 Link to non obsolete methods in xmldocs 2019-08-31 16:12:25 -05:00
Paul Pacheco
a61635424f Remove unncesary casting 2019-08-31 14:48:59 -05:00
Paul Pacheco
4638342168 Remove unnecesary casting 2019-08-31 14:47:19 -05:00
Paul Pacheco
32b72c959d use compound assignment 2019-08-31 14:46:12 -05:00
Paul Pacheco
42b635346a linting 2019-08-31 14:44:53 -05:00
Chris Langsenkamp
438dbfdf03 Fixed typo 2019-08-31 13:12:30 -04:00
Paul Pacheco
ae7fd90f1f use array segment for reading string 2019-08-30 23:16:30 -05:00
Paul Pacheco
7f8840c9b6 refactor to use arraysegment 2019-08-30 23:12:51 -05:00
Paul Pacheco
702b183034 Removed more unused variables 2019-08-30 21:49:26 -05:00
Paul Pacheco
bd44d35bae Use dfault uint64 writer 2019-08-30 21:46:12 -05:00
Paul Pacheco
cab08b1b5a Use default int32 writer 2019-08-30 21:42:53 -05:00
Paul Pacheco
3181b4a5d4 Use default uint64 reader 2019-08-30 21:39:50 -05:00
Paul Pacheco
e389f62c2d Use default reader for uint32 2019-08-30 21:37:19 -05:00
Paul Pacheco
609480208c use default int32 reader 2019-08-30 21:35:00 -05:00
Paul Pacheco
a5d4f46980 test: fix invalid unit test 2019-08-30 17:56:42 -05:00
Chris Langsenkamp
4a78288c92 Updated Comments 2019-08-30 13:48:32 -04:00
MrGadget
5dee6484de
Merge pull request #1041 from MrGadget1024/DocUpdate919
Updated PickupDropChild Doc
2019-08-29 10:27:58 -04:00
Chris Langsenkamp
b04b740649 Updated PickupDropChild Doc 2019-08-29 10:26:14 -04:00
MrGadget
11c67968ba
Merge pull request #1039 from MrGadget1024/DocUpdate919
Updated PickupDropChild doc
2019-08-29 02:36:27 -04:00
Chris Langsenkamp
8ff560fedf Updated PickupDropChild doc 2019-08-29 02:33:26 -04:00
MrGadget
8614d3f913
Merge pull request #1038 from MrGadget1024/DocUpdate919
Updated PickupDropChild doc
2019-08-29 02:26:36 -04:00
Chris Langsenkamp
d9256228bf Updated PickupDropChild doc 2019-08-29 02:05:20 -04:00
MrGadget
77ae31ea57
Merge pull request #1037 from MrGadget1024/DocUpdate919
Replaced childObject Doc
2019-08-29 01:32:37 -04:00
Chris Langsenkamp
78f307de5c Merge master 2019-08-29 01:27:58 -04:00
Chris Langsenkamp
981ac8fa05 Replaced childObject Doc 2019-08-29 01:23:03 -04:00
MrGadget
6568bc4fa9
Update ChildObjects.md
updated code example
2019-08-28 00:46:40 -04:00
MrGadget
d578e720a4
Update SyncDictionary.md
Fixed code example
2019-08-27 09:05:52 -04:00
MrGadget
1cc760497a
Merge pull request #1036 from MrGadget1024/DocUpdate919
Changed to relative links
2019-08-27 08:29:38 -04:00
Chris Langsenkamp
52d5d806ff Changed to relative links 2019-08-27 08:26:41 -04:00
MrGadget
a283c65ed2
Merge pull request #1035 from MrGadget1024/DocUpdate919
Updated cross links
2019-08-27 07:43:15 -04:00
Chris Langsenkamp
608980424f Updated cross links 2019-08-27 07:41:49 -04:00
MrGadget
f0c4949a93
Merge pull request #1034 from MrGadget1024/DocUpdate919
Doc update919
2019-08-26 23:00:34 -04:00
Chris Langsenkamp
49b3307477 Merge branch 'master' into DocUpdate919 2019-08-26 22:59:08 -04:00
Chris Langsenkamp
46e1cf9b60 Added notes to ChildObject Doc 2019-08-26 22:56:41 -04:00
vis2k
c6d86b301b
feat: component based SyncToOwner, fixes #39 (#1023)
* adjust comments

* NetworkBehaviour.syncMode

* show in Editor

* feat: component based SyncToOwner, fixes #39

* rename to Observers

* rename writers and comments too

* SendToReady old signature version

* shorter syntax

* fix segment write length

* fix NullReferenceException for local player

* update comment

* support runtime syncMode changes

* add a test

* remove comments

* UL suffix to avoid cast

* UL suffix

* remove empty line

* OnSerializeAllSafely returns how many components were written. MirrorUpdate only sends to owner/observer if anything written.

* fix tests
2019-08-26 15:21:59 +02:00
MrGadget
c877b5939a
Update README.md
fixed doc url
2019-08-26 07:50:16 -04:00
MrGadget
2d1e5edceb
Update README.md
Fixed doc urls
2019-08-26 07:48:21 -04:00
Chris Langsenkamp
9c082c4c60 Fixed typo in ChildObject doc 2019-08-26 00:25:31 -04:00
MrGadget
f9cd8afc79
Merge pull request #1031 from MrGadget1024/DocUpdate919
Updated ChildObjects doc
2019-08-25 23:11:26 -04:00
Chris Langsenkamp
af28ab425a Updated ChildObjects doc 2019-08-25 23:10:04 -04:00
MrGadget
309098695b
Merge pull request #1030 from MrGadget1024/DocUpdate919
Doc update919
2019-08-25 22:26:06 -04:00
Chris Langsenkamp
9e1cb624ac Replace <T> with {T} for XML Docs Parser 2019-08-25 22:23:55 -04:00
Chris Langsenkamp
080bcb0a31 Updated HelpURL links 2019-08-25 22:10:00 -04:00
Paul Pacheco
b83e921c06 Remove ninja websockes from api docs 2019-08-25 08:36:41 -05:00
Paul Pacheco
614f4bc875 Fix xmldoc in NetworkTime 2019-08-25 08:30:44 -05:00
Paul Pacheco
801515afe6
fix appveyor build error (#1029)
fix appveyor build error
2019-08-25 08:24:38 -05:00
Paul Pacheco
0dbd71eeaf Output from lftp is not an error 2019-08-25 08:05:58 -05:00