Commit Graph

2195 Commits

Author SHA1 Message Date
MrGadget
49f9b5afcb
Update StateSync.md 2019-03-30 10:04:47 -04:00
MrGadget
cfbec28c60
Update SyncEvent.md 2019-03-30 09:54:31 -04:00
MrGadget
805f0395e5
Update index.md 2019-03-30 09:49:28 -04:00
MrGadget
02992da7af
Update index.md 2019-03-30 09:47:15 -04:00
MrGadget
fe6656f61f
Update navigation.yml 2019-03-30 09:46:25 -04:00
MrGadget
e3928cde15
Update index.md 2019-03-30 09:38:31 -04:00
MrGadget
51433b5ef3
Create SyncEvent.md 2019-03-30 09:37:52 -04:00
MrGadget
184d0868bf
Create SyncVars.md 2019-03-30 09:36:27 -04:00
MrGadget
181fddff7a
Update index.md 2019-03-30 09:32:20 -04:00
MrGadget
1fdbb3937e
Update index.md 2019-03-30 08:23:39 -04:00
MrGadget
18e4382c32
Update index.md 2019-03-30 08:15:33 -04:00
MrGadget
049bc96138
Update SyncSortedSet.md 2019-03-30 08:10:38 -04:00
MrGadget
63e297b625
Update SyncSortedSet.md 2019-03-30 08:09:43 -04:00
MrGadget
f3dc1a21c7
Create SyncSortedSet.md 2019-03-30 08:09:09 -04:00
MrGadget
c43e615e7c
Update navigation.yml 2019-03-30 08:08:17 -04:00
MrGadget
13919ca01f
Update ChangeLog.md 2019-03-30 08:07:17 -04:00
Paul Pacheco
4a6a4df61b
fix: #679 package for unity
No code changes,  the changes happened in the UnityPackager
2019-03-29 12:51:16 -05:00
MrGadget
fb31d2a219
Merge pull request #683 from MrGadget1024/Adversator
Adversator Showcase
2019-03-29 09:01:18 -04:00
MrGadget
08c08d4d8c
Update .gitignore 2019-03-29 09:01:02 -04:00
MrGadget
2f226e7063
Update .gitignore 2019-03-29 09:00:39 -04:00
Chris Langsenkamp
2d4e1bde21 Adversator Showcase 2019-03-29 08:49:43 -04:00
Chris Langsenkamp
1db26fc747 Merge branch 'master' of https://github.com/vis2k/Mirror 2019-03-29 06:57:56 -04:00
Paul Pacheco
a8599c1af2 feat: Show compile time error if overriding unused OnServerAddPlayer (#682)
* remove obsolete OnServerAddPlayer

BREAKING CHANGE: Remove obsolete OnServerAddPlayer

Any person that overrides this method has a broken game.  These methods are never called anywhere.

The user gets a warning because they are overriding an obsolete method,  which might get ignored if they have lots of other warnings.   They would run their game and their game would not work at all.  No errors.

By removing these methods, users that override these methods will get a compile time error instead.  So they cannot ignore this error and they will fix it.

* Method is no longer available in NetworkLobbyManager
2019-03-28 11:36:13 +01:00
Chris Langsenkamp
a3b45dfb24 Merge branch 'master' of https://github.com/vis2k/Mirror 2019-03-27 22:26:54 -04:00
Paul Pacheco
8dea50ed18
fix: call Obsoleted OnStartClient (#681) 2019-03-27 18:13:59 -05:00
MichalPetryka
468ec80dbb Remove useless method (#680) 2019-03-27 17:23:37 -05:00
rodolphito
375303297c Removed internal access modifier. (#675)
good catch,  this should be private
2019-03-27 17:22:21 -05:00
MrGadget
ad4a421a60
Merge pull request #5 from vis2k/master
Catchup
2019-03-27 17:18:18 -04:00
MrGadget
3cd2400431
Update NetworkServer.md 2019-03-27 15:30:55 -04:00
rodolphito
40d2ec54e5 This method seems pretty redundant, could just be called directly. (#677) 2019-03-27 13:06:42 -05:00
MrGadget
49f39f9c09 Updated Obsolete comment and code to remove singleton (#661)
* Updated Obsolete comment and code to remove singleton

* Update NetworkClient.cs

* Update NetworkClient.cs

* Update NetworkClient.cs
2019-03-27 15:13:25 +01:00
rodolphito
1feff9d749 Removed useless comment. (#676) 2019-03-27 13:56:59 +01:00
rodolphito
6edfd3ddf1 Removed more internals. (#673) 2019-03-27 13:37:12 +01:00
rodolphito
ba298c74b0 Style guidelines say these are bad. (#672) 2019-03-27 13:20:36 +01:00
rodolphito
57066a6003 These can be private. (#669) 2019-03-27 13:13:27 +01:00
rodolphito
4897edd76a More internal access modifier removals (#671) 2019-03-27 13:13:11 +01:00
Paul Pacheco
3523e52181 Rename artifact in github 2019-03-27 07:11:38 -05:00
Paul Pacheco
11edc142cf feat: ship as a unitypackage 2019-03-27 07:07:17 -05:00
rodolphito
9be7426efa Remove s_ prefix because the entire class is static, the prefix doesnt actually specify anything. (#668) 2019-03-27 12:04:07 +01:00
rodolphito
86c1942310 Remove s_ prefix because the entire class is static, the prefix doesnt actually specify anything. (#667) 2019-03-27 12:03:37 +01:00
rodolphito
595039865f Removed duplicated address storage. (#664)
* Removed duplicated address storage.

* Removed the obsoletion as per vis' request.
2019-03-27 10:27:41 +01:00
rodolphito
c289ffb440 Remove proxy methods for setting playerController. (#665)
* Deprecate proxy methods for setting playerController.

* shortened obsoleted methods.

* This isnt actually public facing, its internal. Obsoletion is unnecessary, plain removal is ok.
2019-03-27 10:26:45 +01:00
uwee
f4cdfbf952 Remove IsClientConnected (#663)
* remove IsClientConnected

no longer needed now that NetworkClient is static

* removed in other scripts also

* marked as obsolete
2019-03-27 09:15:03 +01:00
MrGadget
d7306986b6 Updated Lobby Example Scenes Lighting (#662) 2019-03-26 17:49:56 +01:00
MrGadget
5af30e9206
Update ChangeLog.md 2019-03-26 12:15:53 -04:00
MrGadget
8bf0351b64
Added SyncVar Hooks to navigation 2019-03-26 11:22:50 -04:00
MrGadget
2a727b3d89
Added description for SyncEvent 2019-03-26 11:17:07 -04:00
MrGadget
d2868646fa SyncVar Updates (#660)
* Change SyncVar hooks to use `nameof`
I intentionally left the test for missing hook as a literal string because it won't compile otherwise.

* Removed unnecessary property value set from hook
2019-03-26 15:40:28 +01:00
uwee
68f63b5f69 bool InActiveScene not referenced in any script? (#656)
* code is not referenced in any script?

* fully remove code
2019-03-26 13:58:05 +01:00
Paul Pacheco
2d63ee1318
fix: Set syncvar variables after calling the hook (#659)
Previously, during deserialize,  Mirror either called the hook for a syncvar or it set the variable, but never both. So users had to set the variable inside the hook.

```cs
class Player : NetworkBehaviour {

	[SyncVar(hook=nameof(OnVarChanged))]
	public int myvar;

	public void OnVarChanged(int newvalue) {

		Debug.Log("Got new value " + newvalue);
		Debug.Log("Old value is " + myvar);

		// with this pull request the following line is no longer needed
		// the weaver will do this after the hook finishes
		// this.myvar = newvalue;
	}
}
```

fix: Hook not working with NetworkIdentity or GameObjects

Deserializing NetworkIdentity or GameObjects was broken, it called the hook only if there was no hook,  and it saved the variable only if there was a hook.
2019-03-26 07:15:25 -05:00