Drop old purchase views and models
This commit is contained in:
@ -12,7 +12,6 @@ from hopper.api.dto import (
|
||||
DestinationDto,
|
||||
PlayerDto,
|
||||
PositionDto,
|
||||
ProductDto,
|
||||
)
|
||||
from hopper.enums import ObjectType
|
||||
|
||||
@ -34,20 +33,13 @@ class GameDumpDto(BaseModel):
|
||||
layers: list[LayerDto]
|
||||
|
||||
|
||||
class ProductPurchaseStartDto(BaseModel):
|
||||
player: PlayerDto
|
||||
products: list[ProductDto]
|
||||
timeout: int
|
||||
|
||||
|
||||
class ProductPurchaseTimerDto(BaseModel):
|
||||
time_left: int
|
||||
player: PlayerDto
|
||||
|
||||
|
||||
class ProductPurchaseDoneDto(BaseModel):
|
||||
class PlayerReachedDestinationDto(BaseModel):
|
||||
player: PlayerDto
|
||||
product: Optional[ProductDto] = None
|
||||
|
||||
|
||||
TMessageData = TypeVar("TMessageData", bound=BaseModel)
|
||||
@ -69,11 +61,6 @@ class WSGameDumpMessage(WSMessage):
|
||||
data: GameDumpDto
|
||||
|
||||
|
||||
class WSProductPurchaseStartMessage(WSMessage):
|
||||
message: str = "product_purchase_start"
|
||||
data: ProductPurchaseStartDto
|
||||
|
||||
|
||||
class WSProductPurchaseTimerTickMessage(WSMessage):
|
||||
message: str = "product_purchase_timer_tick"
|
||||
data: ProductPurchaseTimerDto
|
||||
@ -81,4 +68,8 @@ class WSProductPurchaseTimerTickMessage(WSMessage):
|
||||
|
||||
class WSProductPurchaseDoneMessage(WSMessage):
|
||||
message: str = "product_purchase_done"
|
||||
data: ProductPurchaseDoneDto
|
||||
|
||||
|
||||
class WSPlayerReachedDestinationMessage(WSMessage):
|
||||
message: str = "player_reached_destination"
|
||||
data: PlayerReachedDestinationDto
|
||||
|
||||
Reference in New Issue
Block a user