Home (Explanation)

Documentation - MapVote

Explanation:

PlayerController:

If a vote is in progress, we request the current vote data when the player logs in.

  1. BeginPlay ->

    1. RequestPlayersCountOnServerForPlayerVote ->

    2. S_RequestPlayerAmount ->

    3. O_RequestCurrentVotes ->

    4. S_RequestCurrentVotes ->

    5. Get AC_MapVote_Manager and call S_RequestCurrentVotes

    6. Return to PlayerController and call O_LoadCurrentVotes

    7. Call UpdateVote on the MapVoteManager for each vote

AC_MapVote_Manager

  1. StartVote (Server) ->

    1. handleVoteTimer ->

    2. If the vote is over ->

    3. handleEndOfVote ->

    4. StopVote & (ServerTravel or OpenLevel)

  2. Player (Vote, Widget) ->

    1. GetOwningPlayer cast to PC_MapVote ->

    2. O_VoteForMap (Map [Name])

Last updated