Skip to content

Service

TC edited this page Jan 8, 2022 · 3 revisions

Lifecycle

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.

Buy Command

Buy Command Sequence Diagram

Sell Command

Sell Command Sequence Diagram

Initialize

Initialization Sequence Diagram

Clone this wiki locally