MrGadget
bb55baa679
feat: Disposable PooledNetworkReader / PooledNetworkWriter ( #1490 )
...
* Inherit IDisposable
* using NetworkWriter from pool
* Remove Recycles
* Add comments to Recycle
* Add comments to Recycle
* using NetworkReader from pool
* Unity doesn't like the simplified form
* combined usings
* Updated Reader / Writer Tests
* wip
* Disposable NetworkReaderPool:NetworkReader
* uncomment NetworkDiagnostics.OnReceive
* Removed unnecessary constructor
* Implemented NetworkWriterPool : NetworkWriter
* code cleanup
* Separated classes: PooledNetworkReader / PooledNetworkWriter
* Removed blank line
* Update Assets/Mirror/Tests/Editor/NetworkReaderTest.cs
* Test restored
Co-authored-by: Paul Pacheco <paulpach@gmail.com>
2020-02-10 22:26:55 +01:00
Chris Langsenkamp
436d8fe831
fixed xml comment
2020-02-10 16:18:11 -05:00
Chris Langsenkamp
745aea8f9a
Added Deprecated dates to Obsoletes
2020-02-10 16:14:22 -05:00
Chris Langsenkamp
67deaeaa76
Updated Chnagelog
2020-02-10 08:14:20 -05:00
Paul Pacheco
0f10c72744
feat: supports scriptable objects ( #1471 )
...
* feat: supports scriptable objects
Now you can pass scriptable objects in commands, rpcs and syncvars
For example:
```cs
class Weapon: ScriptableObject
{
public string name;
public string description;
public int damage;
...
}
class Player : NetworkBehaviour
{
[SyncVar]
Weapon equipped;
...
}
```
Scriptable objects will be created in the client using
ScriptableObject.CreateInstance. If users want something else
they can provide a custom serializer (that has not changed)
* fix: remove scriptableobject error Tests
The test that checks that scrscriptableobjects give error is no
longer valid
2020-02-09 20:16:13 +01:00
Chris Langsenkamp
ab6a03b9fa
remove SerializeField attribute
2020-02-08 21:08:38 -05:00
Chris Langsenkamp
831db2f033
Updated comments
2020-02-08 21:07:39 -05:00
Chris Langsenkamp
6431c28a12
OnEnable is safer than Awake
2020-02-08 21:02:22 -05:00
Bug
64a59407ef
Update ClientsServers.md ( #1489 )
...
NetworkServer.Listen(int) receives a maximum number of connections, not a port.
ref: https://mirror-networking.com/docs/api/Mirror.NetworkServer.html?q=NetworkServer
2020-02-08 14:49:41 -05:00
FirstGearGames
f5a7c6aa9f
Fixed missing video link image. ( #1487 )
2020-02-07 17:50:22 -05:00
FirstGearGames
d05a46101e
Added video tutorial link. ( #1488 )
2020-02-07 17:50:05 -05:00
MrGadget
90d92fc0cf
Add headless check to Discovery ( #1485 )
2020-02-07 12:13:09 +01:00
vis2k
9f7c30c1ac
fix #1475 : isClient is true in OnDestroy on host/client mode again. Reverts commit d00c95bb55
( #1483 )
...
* fix #1475 : isClient is true in OnDestroy on host/client mode again. Reverts commit d00c95bb55
* add comment
* ClientScene.InternalAddPlayer doesn't need to set isClient anymore
2020-02-07 10:14:54 +01:00
Chris Langsenkamp
82a4af9a62
updated ChangeLog
2020-02-06 20:19:12 -05:00
Chris Langsenkamp
626f084a87
updated example code
2020-02-06 19:32:18 -05:00
Chris Langsenkamp
c06ea6b6c8
Fix comment
2020-02-06 11:51:38 -05:00
vis2k
0d1ac4affc
ProjectSettings resaved
2020-02-06 13:40:19 +01:00
vis2k
3568dc356c
NetworkIdentityTests: HostMode isLocalPlayer check added
2020-02-06 13:16:13 +01:00
vis2k
85e9a0aa13
NetworkIdentityTests: HostMode isServer/isClient/isLocalPlayer test added
2020-02-06 12:42:19 +01:00
vis2k
09ec344821
NetworkIdentityTests: OnStartServer isServer/isClient/isLocalPlayer test added
2020-02-06 12:36:36 +01:00
MrGadget
58df3fd6d6
feat: Added Read<T> Method to NetworkReader ( #1480 )
...
* Added Read<T> Method
* Renamed to ReadMessage
2020-02-06 11:39:39 +01:00
MrGadget
02e4245f3d
BREAKING: Rename NetworkWriter Write<T>to WriteMessage ( #1482 )
2020-02-06 11:38:54 +01:00
Chris Langsenkamp
1c58891e32
Formatted comment and error message
2020-02-05 10:29:49 -05:00
Chris Langsenkamp
86a2c6f52c
Added comments for WeaveFailed
2020-02-05 10:15:09 -05:00
Chris Langsenkamp
4108b79340
Code cleanup
2020-02-05 00:53:14 -05:00
Chris Langsenkamp
e3b299fec4
Updated ScriptTemplates doc
...
Removed zip file
2020-02-04 19:45:00 -05:00
Chris Langsenkamp
34fc52bd50
Added empty AddComponent attribute
2020-02-04 15:05:57 -05:00
Chris Langsenkamp
c7e269d0c5
Removed extraneous comment
2020-02-04 14:55:42 -05:00
vis2k
f614bc8f3a
Icon updated for transparent border
2020-02-04 20:53:48 +01:00
Chris Langsenkamp
ed44c1b77d
Updated ChangeLog
2020-02-04 12:42:27 -05:00
Chris Langsenkamp
f523fca10c
Updated ChangeLog
2020-02-04 12:41:39 -05:00
Chris Langsenkamp
7c5d368ce8
Updated ChangeLog
2020-02-04 12:24:04 -05:00
Chris Langsenkamp
8bcc826ec6
Updated ChangeLog
2020-02-04 12:09:56 -05:00
vis2k
993d2571fb
ProjectSettings resaved
2020-02-04 11:37:49 +01:00
Chris Langsenkamp
a5a9c7e7bc
Updated ChangeLog
2020-02-03 13:59:19 -05:00
Chris Langsenkamp
b4a0830e3c
Updated ChangeLog
2020-02-03 12:05:08 -05:00
Chris Langsenkamp
eeca74f93b
Updated ChangeLog
2020-02-03 12:04:11 -05:00
Paul Pacheco
36980f4a34
Refactor: Rename method to avoid confussion ( #1477 )
2020-02-03 10:00:58 -06:00
Paul Pacheco
d0b0bc92bc
fix: weaver support array of custom types ( #1470 )
...
* WIP
* Proposed Rearrange
* Rearrange Code
* Unit test for PR
* unit test
* unit test
* Update TestingScriptableObjectArraySerialization.cs
Improving code
* Update TestingScriptableObjectArraySerialization.cs
* Remove blank lines
* remove blank space
* Remove leftover log
Co-authored-by: MrGadget <chris@clevertech.net>
Co-authored-by: Uchiha I_A_H_I <jkaran.sharma101@gmail.com>
2020-02-03 14:00:37 +01:00
Paul Pacheco
1736bb0c42
fix: call callback after update dictionary in host ( #1476 )
...
When the callback for SyncDictionary is called in the server
for set or add
it is getting called before the syncdictionary is updated.
In the client this happens after.
Example:
```cs
public void OnScoreUpdatedCallback(ScoreSyncDict.Operation op, uint ident, int score)
{
if (op == ScoreSyncDict.Operation.OP_SET)
Debug.Log($"The value in the dictionary is {scoreDict[ident]}");
}
```
In host mode this prints the previous value. In client mode this prints the current value. This PR fixes this problem and makes both print the current value
2020-02-02 20:29:31 -06:00
Chris Langsenkamp
d07f847e28
Update ChangeLog
2020-02-02 15:19:10 -05:00
Chris Langsenkamp
c2e7466c43
Updated Preprocessor defines
2020-02-02 15:18:49 -05:00
Chris Langsenkamp
c827216a66
Restructured prefabs in examples
2020-02-02 14:55:49 -05:00
MrGadget
eee969201d
Renamed localEulerAnglesSensitivity ( #1474 )
...
BREAKING CHANGE: localEulerAnglesSensitivity renamed to localRotationSensitivity
2020-02-02 13:35:07 -06:00
Chris Langsenkamp
8816ce5d03
Add headers for inspector
2020-02-02 13:53:25 -05:00
MrGadget
7c1b5ab5f8
Add Header to NetworkBehaviourInspector ( #1473 )
2020-02-02 13:40:30 -05:00
Chris Langsenkamp
a2c88d787d
Updated ChangeLog
2020-02-01 13:08:44 -05:00
MrGadget
9257112c65
feat: Implemented NetworkReaderPool ( #1464 )
...
* Implement NetworkReaderPool
* Reset Position
* Debug logging removed
* SetBuffer methods internal
* Edited comment
2020-02-01 14:05:09 +01:00
Chris Langsenkamp
abb570b309
Updated RemoteActions Doc
2020-01-31 22:04:51 -05:00
Chris Langsenkamp
d0e493ac92
Updated ScriptTemplates
2020-01-31 21:25:38 -05:00