add


Description:

[ Version ( since = "3.58" ) ]
public void add (Client client, Component comp)

Adds a component into the bag.

It's possible to add the same component from the same client multiple times, in which case any previous occurrence is removed.

The component is identified by the client and its uid/rid.

Note this unsets any previously set user data on the item by the add_with_user_data.

Parameters:

this

an ComponentBag

client

an Client

comp

an Component