Module valolyticspy.dtos.valorant_api.game_mode

Expand source code
from pydantic import BaseModel
from typing import List, Optional

class GameFeatureOverride(BaseModel):
    """
    Represents a game feature override.

    Attributes:
        featureName (str): The name of the feature.
        state (bool): The state of the feature override.
    """
    featureName: str
    state: bool

class GameRuleBoolOverride(BaseModel):
    """
    Represents a boolean override for a game rule.

    Attributes:
        ruleName (str): The name of the game rule.
        state (bool): The state of the game rule override.
    """
    ruleName: str
    state: bool

class GameMode(BaseModel):
    """
    Represents a game mode in Valorant.
    
    Attributes:
        uuid (str): The unique identifier of the game mode.
        displayName (str): The display name of the game mode.
        duration (Optional[str]): The duration of the game mode (optional).
        economyType (Optional[str]): The economy type of the game mode (optional).
        allowsMatchTimeouts (bool): Indicates whether match timeouts are allowed.
        isTeamVoiceAllowed (bool): Indicates whether team voice communication is allowed.
        isMinimapHidden (bool): Indicates whether the minimap is hidden.
        orbCount (int): The number of orbs in the game mode.
        roundsPerHalf (int): The number of rounds per half in the game mode.
        teamRoles (Optional[List[str]]): The roles available in the game mode (optional).
        gameFeatureOverrides (Optional[List[GameFeatureOverride]]): The feature overrides for the game mode (optional).
        gameRuleBoolOverrides (Optional[List[GameRuleBoolOverride]]): The boolean rule overrides for the game mode (optional).
        displayIcon (Optional[str]): The display icon for the game mode (optional).
        listViewIconTall (Optional[str]): The tall list view icon for the game mode (optional).
        assetPath (str): The asset path for the game mode.
    """
    uuid:str
    displayName:str
    duration:Optional[str] = None
    economyType:Optional[str] = None
    allowsMatchTimeouts:bool
    isTeamVoiceAllowed:bool
    isMinimapHidden:bool
    orbCount:int
    roundsPerHalf:int
    teamRoles:Optional[List[str]] = None
    gameFeatureOverrides:Optional[List[GameFeatureOverride]] = None
    gameRuleBoolOverrides:Optional[List[GameRuleBoolOverride]] = None
    displayIcon:Optional[str] = None
    listViewIconTall:Optional[str] = None
    assetPath:str

Classes

class GameFeatureOverride (**data: Any)

Represents a game feature override.

Attributes

featureName : str
The name of the feature.
state : bool
The state of the feature override.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Expand source code
class GameFeatureOverride(BaseModel):
    """
    Represents a game feature override.

    Attributes:
        featureName (str): The name of the feature.
        state (bool): The state of the feature override.
    """
    featureName: str
    state: bool

Ancestors

  • pydantic.main.BaseModel

Class variables

var featureName : str
var model_computed_fields
var model_config
var model_fields
var state : bool
class GameMode (**data: Any)

Represents a game mode in Valorant.

Attributes

uuid : str
The unique identifier of the game mode.
displayName : str
The display name of the game mode.
duration : Optional[str]
The duration of the game mode (optional).
economyType : Optional[str]
The economy type of the game mode (optional).
allowsMatchTimeouts : bool
Indicates whether match timeouts are allowed.
isTeamVoiceAllowed : bool
Indicates whether team voice communication is allowed.
isMinimapHidden : bool
Indicates whether the minimap is hidden.
orbCount : int
The number of orbs in the game mode.
roundsPerHalf : int
The number of rounds per half in the game mode.
teamRoles : Optional[List[str]]
The roles available in the game mode (optional).
gameFeatureOverrides : Optional[List[GameFeatureOverride]]
The feature overrides for the game mode (optional).
gameRuleBoolOverrides : Optional[List[GameRuleBoolOverride]]
The boolean rule overrides for the game mode (optional).
displayIcon : Optional[str]
The display icon for the game mode (optional).
listViewIconTall : Optional[str]
The tall list view icon for the game mode (optional).
assetPath : str
The asset path for the game mode.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Expand source code
class GameMode(BaseModel):
    """
    Represents a game mode in Valorant.
    
    Attributes:
        uuid (str): The unique identifier of the game mode.
        displayName (str): The display name of the game mode.
        duration (Optional[str]): The duration of the game mode (optional).
        economyType (Optional[str]): The economy type of the game mode (optional).
        allowsMatchTimeouts (bool): Indicates whether match timeouts are allowed.
        isTeamVoiceAllowed (bool): Indicates whether team voice communication is allowed.
        isMinimapHidden (bool): Indicates whether the minimap is hidden.
        orbCount (int): The number of orbs in the game mode.
        roundsPerHalf (int): The number of rounds per half in the game mode.
        teamRoles (Optional[List[str]]): The roles available in the game mode (optional).
        gameFeatureOverrides (Optional[List[GameFeatureOverride]]): The feature overrides for the game mode (optional).
        gameRuleBoolOverrides (Optional[List[GameRuleBoolOverride]]): The boolean rule overrides for the game mode (optional).
        displayIcon (Optional[str]): The display icon for the game mode (optional).
        listViewIconTall (Optional[str]): The tall list view icon for the game mode (optional).
        assetPath (str): The asset path for the game mode.
    """
    uuid:str
    displayName:str
    duration:Optional[str] = None
    economyType:Optional[str] = None
    allowsMatchTimeouts:bool
    isTeamVoiceAllowed:bool
    isMinimapHidden:bool
    orbCount:int
    roundsPerHalf:int
    teamRoles:Optional[List[str]] = None
    gameFeatureOverrides:Optional[List[GameFeatureOverride]] = None
    gameRuleBoolOverrides:Optional[List[GameRuleBoolOverride]] = None
    displayIcon:Optional[str] = None
    listViewIconTall:Optional[str] = None
    assetPath:str

Ancestors

  • pydantic.main.BaseModel

Class variables

var allowsMatchTimeouts : bool
var assetPath : str
var displayIcon : Optional[str]
var displayName : str
var duration : Optional[str]
var economyType : Optional[str]
var gameFeatureOverrides : Optional[List[GameFeatureOverride]]
var gameRuleBoolOverrides : Optional[List[GameRuleBoolOverride]]
var isMinimapHidden : bool
var isTeamVoiceAllowed : bool
var listViewIconTall : Optional[str]
var model_computed_fields
var model_config
var model_fields
var orbCount : int
var roundsPerHalf : int
var teamRoles : Optional[List[str]]
var uuid : str
class GameRuleBoolOverride (**data: Any)

Represents a boolean override for a game rule.

Attributes

ruleName : str
The name of the game rule.
state : bool
The state of the game rule override.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Expand source code
class GameRuleBoolOverride(BaseModel):
    """
    Represents a boolean override for a game rule.

    Attributes:
        ruleName (str): The name of the game rule.
        state (bool): The state of the game rule override.
    """
    ruleName: str
    state: bool

Ancestors

  • pydantic.main.BaseModel

Class variables

var model_computed_fields
var model_config
var model_fields
var ruleName : str
var state : bool