Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Progress #1407 -- HandleSpawn and Champion refactor #1440

Merged
merged 1 commit into from
May 1, 2022
Merged

Progress #1407 -- HandleSpawn and Champion refactor #1440

merged 1 commit into from
May 1, 2022

Conversation

Killfrra
Copy link
Contributor

@Killfrra Killfrra commented May 1, 2022

I refactored the HandleSpawn class and unified the spawning of champions with the spawning of other objects, moving most of the code into the appropriate class.

Other changes:

  • The NotifyS2C_CreateHero function now accepts an optional parameter that allows the packet to be wrapped in a vision packet when sent, similar to the NotifySpawn function.
  • The same setting for NotifySpawn is now set to false by default.
  • All comparisons of userId with 0 are reduced to the form <=.

Copy link
Contributor

@lzardy lzardy left a comment

Choose a reason for hiding this comment

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

Seems good.

@@ -544,7 +544,8 @@ public interface IPacketNotifier
/// </summary>
/// <param name="clientInfo">Information about the client which had their hero created.</param>
/// <param name="userId">User to send the packet to. Set to -1 to broadcast.</param>
void NotifyS2C_CreateHero(ClientInfo clientInfo, int userId = -1);
/// <param name="doVision">Whether or not to package the packets into a vision packet.</param>
Copy link
Contributor

Choose a reason for hiding this comment

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

Although this option can be streamlined for all other packets, I'll accept for now.

@lzardy lzardy merged commit 10e791a into LeagueSandbox:indev May 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants