Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to MLAPI: onnetworkspawn refactoring, player prefab removed from networkmanager prefab list #352

Merged
merged 4 commits into from
Jul 7, 2021

Conversation

fernando-cortez
Copy link
Collaborator

BossRoom now tracks MLAPI develop hash 7e19026a74f6573cc4aa22d746275332e702d2c5.

This fixes quite a bit of editor QoL issues. Namely:

Notable API change: NetworkStart() refactored to OnNetworkSpawn(). Same functionality.

Player prefab has also been removed from NetworkPrefabs list since there is now a dedicated field for Player Prefab.

@fernando-cortez fernando-cortez added 2-Easy This PR is trivial and can be reviewed quickly 1-Needs Review PR needs attention from the assignee and reviewers labels Jun 16, 2021
@SamuelBellomo SamuelBellomo changed the title onnetworkspawn refactoring, player prefab removed from networkmanager prefab list Update to MLAPI: onnetworkspawn refactoring, player prefab removed from networkmanager prefab list Jul 5, 2021
@@ -97,7 +97,7 @@ private struct ActionRequest
/// </summary>
CharacterClass CharacterData => GameDataSource.Instance.CharacterDataByType[m_NetworkCharacter.CharacterType];

public override void NetworkStart()
public override void OnNetworkSpawn()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as discussed, let's make sure there's a despawn that unregisters this if needed

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Added an event to subscribe to (HeroActionBar and HeroEmoteBar do this) for when the local player's ClientInputSender is NetworkSpawned & NetworkDespawned.

SamuelBellomo
SamuelBellomo previously approved these changes Jul 5, 2021
@fernando-cortez fernando-cortez merged commit dd45356 into develop Jul 7, 2021
@fernando-cortez fernando-cortez deleted the feature/mlapi-develop-version-upgrade branch July 7, 2021 20:57
SamuelBellomo added a commit that referenced this pull request Jul 20, 2021
* develop:
  Feature/player persistence prefab refactor (#349)
  upping MLAPI develop version (#355)
  Update to MLAPI: onnetworkspawn refactoring, player prefab removed from networkmanager prefab list (#352)

# Conflicts:
#	Assets/BossRoom/Prefabs/NetworkingManager.prefab
#	Packages/packages-lock.json
Cosmin-B added a commit that referenced this pull request Sep 14, 2021
* feature/adding-UTP:
  Adding ParrelSync and updating third party notice.md (#357)
  updating to latest UTP
  Feature/player persistence prefab refactor (#349)
  upping MLAPI develop version (#355)
  Update to MLAPI: onnetworkspawn refactoring, player prefab removed from networkmanager prefab list (#352)
  porting to UTP

# Conflicts:
#	Assets/BossRoom/Prefabs/NetworkingManager.prefab
#	Assets/BossRoom/Scenes/Startup.unity
#	Assets/BossRoom/Scripts/Client/BossRoom.Client.asmdef
#	Assets/BossRoom/Scripts/Shared/BossRoom.Shared.asmdef
#	Assets/BossRoom/Scripts/Shared/Game/UI/Editor/NetworkLatencyWarning.cs
#	Packages/manifest.json
#	Packages/packages-lock.json
#	ProjectSettings/PackageManagerSettings.asset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-Needs Review PR needs attention from the assignee and reviewers 2-Easy This PR is trivial and can be reviewed quickly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants