Say in the game, we have Entities that communicate with each other. Let's say that the player collides with an item, and now this item must be placed in hisstd::vector<Item*>
When a player receives a collision message, he receives the item as an object *. Was it then appropriate for the player to apply it as an element, and if the listing succeeds, click the element in inventory?
Even if the game sent him a HIT_ITEM message, he would still need to click it to insert it.
thank
source
share