Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Generate a summary for this function:
- public void Pause()
- {
- if (PauseTimeLeft <= 0)
- {
- return;
- }
- IsPaused = true;
- PacketNotifier.NotifyPauseGame((int)PauseTimeLeft, true);
- }
- 2. Output:
- /// <summary>
- /// Temporarily prevents the game loop from continuing and notifies players.
- /// </summary>
- 3. Generate a summary for this function:
- public void Unpause()
- {
- _lastMapDurationWatch.Start();
- IsPaused = false;
- _pauseTimer.Enabled = false;
- }
- 4. Output:
- <GPT-3 summary>
- 5. Ideal summary which may be generated for the above function:
- /// <summary>
- /// Releases the game loop from a temporary pause.
- /// </summary>
- FUNCTIONS WITH PARAMETERS:
- 6. Generate a summary for this function:
- public void NotifyAddXp(IChampion champion, float experience)
- {
- var xp = new AddXp(champion, experience);
- _packetHandlerManager.BroadcastPacket(xp, Channel.CHL_S2C);
- }
- 7. Output:
- /// <summary>
- /// Sends a packet to all players that the specified Champion has gained the specified amount of experience.
- /// </summary>
- /// <param name="champion">Champion that gained the experience.</param>
- /// <param name="experience">Amount of experience gained.</param>
- 8. Generate a summary for this function:
- public void NotifyChampionDie(IChampion champion, IAttackableUnit killer, int goldFromKill)
- {
- var cd = new ChampionDie(champion, killer, goldFromKill);
- _packetHandlerManager.BroadcastPacket(cd, Channel.CHL_S2C);
- NotifyChampionDeathTimer(champion);
- }
- 9. Output:
- /// <summary>
- /// Sends a packet to all players that the specified Champion has died and the killer acquired gold for this kill.
- /// </summary>
- /// <param name="champion">Champion that died.</param>
- /// <param name="killer">Killer of the specified Champion.</param>
- /// <param name="goldFromKill">Amount of gold acquired from killing this Champion.</param>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement