added first event functions documented server behaviour for some events
This commit is contained in:
17
Game_Client/Classes/Game/Events/PlaceCard.py
Normal file
17
Game_Client/Classes/Game/Events/PlaceCard.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from Classes.Game.Cards.Card import Card
|
||||
from Classes.Game.World import World
|
||||
from Classes.System.Network.NetworkManager import NetworkManager
|
||||
|
||||
|
||||
# the event the client sends to the server when it places a card
|
||||
def PlaceCard(networkManager: NetworkManager, card:Card):
|
||||
# todo: send card information to the server
|
||||
# todo: required info is:
|
||||
# - position
|
||||
# - field type (used for validating what field the card is played in will be compared on server side)
|
||||
# - card id (server will do the rest to fetch card info)
|
||||
pass
|
||||
|
||||
# the event send from the server to display a card on the field
|
||||
def CardPlaced(world:World):
|
||||
pass
|
||||
Reference in New Issue
Block a user