Module valolyticspy.dtos.valorant_api.map
Expand source code
from pydantic import BaseModel
from typing import List, Optional
class Location(BaseModel):
"""
Represents a location with x and y coordinates.
Attributes:
x (float): The x-coordinate of the location.
y (float): The y-coordinate of the location.
"""
x: float
y: float
class Callout(BaseModel):
"""
Represents a callout for a specific location on the map.
Attributes:
regionName (str): The name of the region where the callout is located.
superRegionName (str): The name of the super region where the callout is located.
location (Location): The specific location of the callout.
"""
regionName: str
superRegionName: str
location: Location
class Map(BaseModel):
"""
Represents a map in the Valorant game.
Attributes:
uuid (str): The unique identifier of the map.
displayName (str): The display name of the map.
narrativeDescription (str, optional): The narrative description of the map. Defaults to None.
tacticalDescription (str, optional): The tactical description of the map. Defaults to None.
coordinates (str, optional): The coordinates of the map. Defaults to None.
displayIcon (str, optional): The display icon of the map. Defaults to None.
listViewIcon (str): The list view icon of the map.
listViewIconTall (str, optional): The tall list view icon of the map. Defaults to None.
splash (str): The splash image of the map.
stylizedBackgroundImage (str, optional): The stylized background image of the map. Defaults to None.
premierBackgroundImage (str, optional): The premier background image of the map. Defaults to None.
assetPath (str): The asset path of the map.
mapUrl (str): The URL of the map.
xMultiplier (float): The X multiplier of the map.
yMultiplier (float): The Y multiplier of the map.
xScalarToAdd (float): The X scalar to add to the map.
yScalarToAdd (float): The Y scalar to add to the map.
callouts (List[Callout], optional): The list of callouts for the map. Defaults to None.
"""
uuid:str
displayName:str
narrativeDescription:Optional[str] = None
tacticalDescription:Optional[str] = None
coordinates:Optional[str] = None
displayIcon:Optional[str] = None
listViewIcon:str
listViewIconTall:Optional[str] = None
splash:str
stylizedBackgroundImage:Optional[str] = None
premierBackgroundImage:Optional[str] = None
assetPath:str
mapUrl:str
xMultiplier:float
yMultiplier:float
xScalarToAdd:float
yScalarToAdd:float
callouts:Optional[List[Callout]] = None
Classes
class Callout (**data: Any)-
Represents a callout for a specific location on the map.
Attributes
regionName:str- The name of the region where the callout is located.
superRegionName:str- The name of the super region where the callout is located.
location:Location- The specific location of the callout.
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.selfis explicitly positional-only to allowselfas a field name.Expand source code
class Callout(BaseModel): """ Represents a callout for a specific location on the map. Attributes: regionName (str): The name of the region where the callout is located. superRegionName (str): The name of the super region where the callout is located. location (Location): The specific location of the callout. """ regionName: str superRegionName: str location: LocationAncestors
- pydantic.main.BaseModel
Class variables
var location : Locationvar model_computed_fieldsvar model_configvar model_fieldsvar regionName : strvar superRegionName : str
class Location (**data: Any)-
Represents a location with x and y coordinates.
Attributes
x:float- The x-coordinate of the location.
y:float- The y-coordinate of the location.
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.selfis explicitly positional-only to allowselfas a field name.Expand source code
class Location(BaseModel): """ Represents a location with x and y coordinates. Attributes: x (float): The x-coordinate of the location. y (float): The y-coordinate of the location. """ x: float y: floatAncestors
- pydantic.main.BaseModel
Class variables
var model_computed_fieldsvar model_configvar model_fieldsvar x : floatvar y : float
class Map (**data: Any)-
Represents a map in the Valorant game.
Attributes
uuid:str- The unique identifier of the map.
displayName:str- The display name of the map.
narrativeDescription:str, optional- The narrative description of the map. Defaults to None.
tacticalDescription:str, optional- The tactical description of the map. Defaults to None.
coordinates:str, optional- The coordinates of the map. Defaults to None.
displayIcon:str, optional- The display icon of the map. Defaults to None.
listViewIcon:str- The list view icon of the map.
listViewIconTall:str, optional- The tall list view icon of the map. Defaults to None.
splash:str- The splash image of the map.
stylizedBackgroundImage:str, optional- The stylized background image of the map. Defaults to None.
premierBackgroundImage:str, optional- The premier background image of the map. Defaults to None.
assetPath:str- The asset path of the map.
mapUrl:str- The URL of the map.
xMultiplier:float- The X multiplier of the map.
yMultiplier:float- The Y multiplier of the map.
xScalarToAdd:float- The X scalar to add to the map.
yScalarToAdd:float- The Y scalar to add to the map.
callouts:List[Callout], optional- The list of callouts for the map. Defaults to None.
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.selfis explicitly positional-only to allowselfas a field name.Expand source code
class Map(BaseModel): """ Represents a map in the Valorant game. Attributes: uuid (str): The unique identifier of the map. displayName (str): The display name of the map. narrativeDescription (str, optional): The narrative description of the map. Defaults to None. tacticalDescription (str, optional): The tactical description of the map. Defaults to None. coordinates (str, optional): The coordinates of the map. Defaults to None. displayIcon (str, optional): The display icon of the map. Defaults to None. listViewIcon (str): The list view icon of the map. listViewIconTall (str, optional): The tall list view icon of the map. Defaults to None. splash (str): The splash image of the map. stylizedBackgroundImage (str, optional): The stylized background image of the map. Defaults to None. premierBackgroundImage (str, optional): The premier background image of the map. Defaults to None. assetPath (str): The asset path of the map. mapUrl (str): The URL of the map. xMultiplier (float): The X multiplier of the map. yMultiplier (float): The Y multiplier of the map. xScalarToAdd (float): The X scalar to add to the map. yScalarToAdd (float): The Y scalar to add to the map. callouts (List[Callout], optional): The list of callouts for the map. Defaults to None. """ uuid:str displayName:str narrativeDescription:Optional[str] = None tacticalDescription:Optional[str] = None coordinates:Optional[str] = None displayIcon:Optional[str] = None listViewIcon:str listViewIconTall:Optional[str] = None splash:str stylizedBackgroundImage:Optional[str] = None premierBackgroundImage:Optional[str] = None assetPath:str mapUrl:str xMultiplier:float yMultiplier:float xScalarToAdd:float yScalarToAdd:float callouts:Optional[List[Callout]] = NoneAncestors
- pydantic.main.BaseModel
Class variables
var assetPath : strvar callouts : Optional[List[Callout]]var coordinates : Optional[str]var displayIcon : Optional[str]var displayName : strvar listViewIcon : strvar listViewIconTall : Optional[str]var mapUrl : strvar model_computed_fieldsvar model_configvar model_fieldsvar narrativeDescription : Optional[str]var premierBackgroundImage : Optional[str]var splash : strvar stylizedBackgroundImage : Optional[str]var tacticalDescription : Optional[str]var uuid : strvar xMultiplier : floatvar xScalarToAdd : floatvar yMultiplier : floatvar yScalarToAdd : float