FirstGearGames
f83f87fc12
Removed YouTube link. Link is changing soon. ( #1960 )
2020-06-03 10:27:50 -04:00
FirstGearGames
95baa53b4f
Removed YouTube link. Link is changing soon. ( #1961 )
2020-06-03 10:27:35 -04:00
FirstGearGames
ab21af4db1
Removed YouTube link. Link is changing soon. ( #1962 )
2020-06-03 10:27:21 -04:00
James Frowen
2444275401
fixing typo in comment ( #1963 )
2020-06-03 15:11:57 +01:00
Chris Langsenkamp
bc9659a148
doc: Updated ChangeLog
2020-06-02 13:09:18 -04:00
Chris Langsenkamp
a389a74175
doc: Updated docs for Command ignoreAuthority option
2020-06-02 11:09:15 -04:00
Chris Langsenkamp
a1c8338485
doc: Updated ChangeLog
2020-06-02 11:08:28 -04:00
Chris Langsenkamp
3a4ea4645d
doc: fixed typos in readme
2020-06-02 10:42:50 -04:00
James Frowen
e6311ecb37
adding better error message for ResolveMethod ( #1950 )
2020-05-31 19:35:22 +02:00
James Frowen
e736f41470
moving exists check to its own function ( #1948 )
...
* moving exists check to its own function
* moving order and adding whitespace
2020-05-31 19:35:06 +02:00
James Frowen
62257d8c4f
fix: better error for Command, ClientRpc and TargetRpc marked as abstract ( #1947 )
...
* weaver test for virtual and abstract commands
* adding error for abstract methods
* adding base class for command tests and renaming file
* adding tests for virutal commands
* renaming classes to make more sense
* removing whitespace
* adding tests for Client Target Rpc too
* fixing compile error
* fixing message and typo
* removing line
* renaming namespace and base class to be used by Rpc
* tests for calling Rpc
* tests for virtual rpc
* fixing typo
2020-05-30 19:17:29 +02:00
James Frowen
cace9ab840
Refactor weaver 4 ( #1946 )
...
* white space
* renaming parameter name
* renaming parameter name
* making comment look the same as the one in writeArguments
* removing NetworkBehaviourType2 to make code simplier
* whitesapce
2020-05-30 17:38:34 +02:00
James Frowen
b4acf7d9a2
feat: Adding onLocalPlayerChanged to ClientScene for when localPlayer is changed ( #1920 )
...
* adding onLocalPlayerChanged event
* Update Assets/Mirror/Runtime/ClientScene.cs
Co-authored-by: MrGadget <chris@clevertech.net>
Co-authored-by: MrGadget <chris@clevertech.net>
2020-05-30 15:45:49 +02:00
James Frowen
3a35b0e9de
adding extension methods ( #1938 )
2020-05-30 15:43:32 +02:00
James Frowen
26c02199ba
renaming function ( #1937 )
...
* renaming function
* adding more comments
2020-05-30 15:43:14 +02:00
James Frowen
b1e47d5b6a
adding RemoteCallType ( #1936 )
...
* adding RemoteCallType
* Update Assets/Mirror/Editor/Weaver/Processors/NetworkBehaviourProcessor.cs
2020-05-30 15:42:34 +02:00
James Frowen
7205d3a705
Clean up test scripts ( #1942 )
...
* fixing white space
* sorting using statements
2020-05-29 18:55:12 -04:00
James Frowen
3f9f3c8298
Clean up scripts ( #1941 )
...
* fixing white space
* sorting using statements
2020-05-29 18:54:56 -04:00
Chris Langsenkamp
e49313bfd2
Lowered Tanks example Projectile destroyAfter to 1
2020-05-29 13:58:34 -04:00
Chris Langsenkamp
d5a0bc740f
Added Projectile to NetworkManager's Spawnables list in Tanks example
2020-05-29 13:57:59 -04:00
Chris Langsenkamp
bf624fa917
Reset Tanks Projectile Prefab
2020-05-29 13:56:52 -04:00
MrGadget
3ace2c6eb6
feat: Adding ignoreAuthority Option to Command ( #1918 )
...
* Add ignoreAuthority to weaver
* Add ignoreAuthority to CommandAttribute
* Add NetworkConnection to handlers
* Pass conn parameter from OnCommandMessage
* Add ignoreAuthority to SendCommandInternal
Add NetworkConnection param to CmdDelegate
Add NetworkConnection param to InvokeCommand
Pass conn to InvokeHandlerDelegate
Pass conn to invoker.invokeFunction
* Update tests with optional NetworkConnection param
* adding commandInfo
* fixing test calls
* renaming arguments
* adding ignoreAuthority to register call
* weaver tests for ignore authority
* tests for command ignoreAuthority
* adding debug assert to make sure tests is running correct
* moving variables up
* removing un-needed code
* updating tests
Co-authored-by: James Frowen <jamesfrowendev@gmail.com>
2020-05-28 11:54:12 +02:00
Chris Langsenkamp
8721d05fff
Moved FinishLoadSceneServerOnly up to match call order
2020-05-27 22:57:41 -04:00
Chris Langsenkamp
7d9175dfc7
Moved GetStartPosition to correct region
2020-05-27 22:51:26 -04:00
James Frowen
9ae7fa2a8c
feat: adding OnRoomServerPlayersNotReady to NetworkRoomManager that is called when player ready changes and atleast 1 player is not ready ( #1921 )
...
* adding virtual function for Players not ready
* moving function calls to property
* making if check easier to read
* setting field
* making field private
* removed blank line
* Added override to template
* doc: Updated ChangeLog
Co-authored-by: Chris Langsenkamp <chris@clevertech.net>
2020-05-27 15:42:18 -04:00
James Frowen
64533ca4da
Fixing optional network connection ( #1934 )
...
* adding tests for optional NetworkConnection
* fixing validate to allow optional NetworkConnection
* fixing error message in test
2020-05-27 18:09:35 +01:00
Chris Langsenkamp
3d04f97c8d
doc: Updated ChangeLog
2020-05-27 12:24:06 -04:00
Chris Langsenkamp
d9b7bb7357
fix: OnClientEnterRoom should only fire on clients
2020-05-27 12:15:52 -04:00
Chris Langsenkamp
cfea4d3ac9
doc: Updated ChangeLog
2020-05-27 12:00:11 -04:00
Chris Langsenkamp
0c3e079d04
feat: Added virtual SyncVar hook for index in NetworkRoomPlayer
2020-05-27 11:57:35 -04:00
James Frowen
52aa62af6d
Updating target rpc tests ( #1933 )
...
* fixing the TargetRpc Test class
moving SyncEvent Tests to their own folder
renaming tests to be readable
* removing meta file from csproj
* fixing typo
* sync event tests
* fixing typo
* fixing typo
* fixing errors in tests
* fixing name in test message
* error for first param not NetworkConnection for targetRpc
* adding error if no paremeters
2020-05-27 16:22:46 +01:00
James Frowen
210796cff8
moving lastMessageTime to other constructor ( #1924 )
...
making extra constrctor call empty one
2020-05-27 00:05:57 +02:00
James Frowen
59f8e9b794
renaming all ILProcessor to be called worker ( #1926 )
2020-05-27 00:04:18 +02:00
uwee
218faa85d5
Tank example fixes ( #1928 )
...
* move game state out of NetMan
* update scene for script movement
2020-05-27 00:03:58 +02:00
James Frowen
03486997fb
fix: no longer requires hook to be the first overload in a class ( #1913 )
...
* test for sync var hook order
* adding extension method
* allowing hook method to be in any order
* adding second hard to test functions
2020-05-24 16:05:50 +02:00
James Frowen
e9d9bae397
renaming arguments ( #1919 )
2020-05-24 14:11:10 +01:00
uwee
ee3e29de9c
Gamify Tanks Example ( #1906 )
...
* add health lives and score to Tank
* add damage and a source object to projectile
* update prefabs to use new vars
* add gamecontroller to manage state and UI
* update scene to use new gamecontroller and ui
* retag as player
* code cleanup
* replaced GameController with a custom NetMan
* removed lives and respawning. added state management
* scene and prefab updates
* fix billboarding for player names
* fix: cant win game when alone
* darker menu colors
2020-05-23 09:49:04 +02:00
Chris Langsenkamp
efdd86e82d
Removed Discord Transport
2020-05-23 03:17:19 -04:00
Chris Langsenkamp
9af63b8ced
fixed typo
2020-05-23 02:53:45 -04:00
Chris Langsenkamp
90a0d366da
fix comment
2020-05-23 02:53:15 -04:00
Chris Langsenkamp
12c38c4715
NetworkManager:RegisterClientMessages can use RegisterHandler instead of ReplaceHandler.
2020-05-23 02:49:31 -04:00
Chris Langsenkamp
026f24d453
doc: Updated ChangeLog
2020-05-21 15:44:34 -04:00
Chris Langsenkamp
1ecc329daf
doc: Updated ChangeLog
2020-05-21 15:10:01 -04:00
Chris Langsenkamp
df083bfd24
doc: Updated ChangeLog
2020-05-21 14:52:47 -04:00
James Frowen
1c2bb2c6a3
Tests for static syncvar hooks ( #1912 )
...
* tests for static hooks
* csproj
2020-05-21 10:40:53 +02:00
James Frowen
0b2dd5fd36
moving writing of syncvar hook to once place ( #1910 )
...
* moving writing of syncvar hook to once place
* fixing typo in comment
2020-05-21 10:40:36 +02:00
MrGadget
7d4c0a9cb6
feat: Use SortedDictionary for LogSettings ( #1914 )
...
* feat: Use SortedDictionary for LogSettings
* Remove manual sort
2020-05-21 10:39:48 +02:00
Chris Langsenkamp
6c8ff77bc1
Added headers to LogSettings window & component
2020-05-20 16:04:01 -04:00
Chris Langsenkamp
c7d8c0933d
feat: Prettify Log Names
2020-05-20 14:33:22 -04:00
James Frowen
efef55318c
deleting old files ( #1905 )
2020-05-20 10:58:22 -04:00