-
Notifications
You must be signed in to change notification settings - Fork 0
Service
The processes of the Trading Service are always based on a user command. This is sent by the player to the game service and from there to the trading service. The Trading Service controls the money-relevant information. The service also checks whether the request was made from a valid position (space station, spawn). Then, in the case of robot-relevant trades, a single request is sent to the robot service to check whether it meets all the necessary requirements for the trade. If this is the case, the trading service receives a positive response to its request to the robot service, withdraws the money and throws an event with the transactionId associated with the trade, so that the player knows what happened with the trade. In the event of a transaction failure, an event is also thrown to inform the player of the error.