View Source Teiserver.Game.MatchMembership (Teiserver v0.0.4)
Match
The persisted storage of players of a match after it started.
Attributes
:team_number
- The team this player was a member of:win?
- If the player was on the winning team:party_id
- The ID of the party the player was a member of (if any):left_after_seconds
- The number of seconds into the game at which the player was determined to have disconnected:user
- The user in question:match
- The match in question
Summary
Functions
Builds a changeset based on the struct
and params
.
Types
@type t() :: %Teiserver.Game.MatchMembership{ __meta__: term(), left_after_seconds: Teiserver.seconds(), match: term(), match_id: Teiserver.match_id(), party_id: Teiserver.party_id(), team_number: Teiserver.team_number(), user: term(), user_id: Teiserver.user_id(), win?: boolean() }
Functions
@spec changeset(map(), map()) :: Ecto.Changeset.t()
Builds a changeset based on the struct
and params
.