s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
SelectionSystem
chevron_left
Classes
class
SelectionSystem
search
Constructors
functions
SelectionSystem
Properties
data_object
Count
data_object
OnItemAdded
data_object
OnItemRemoved
Methods
functions
Add
functions
Any
functions
Clear
functions
Contains
functions
GetEnumerator
functions
Remove
functions
Set
Static Methods
functions
ConstructTitle
SelectionSystem
An ordered collection of unique objects with add/remove callbacks. Maintains insertion order and provides change notifications.
class
Sandbox
.
Sandbox.System
build
Constructors
1
SelectionSystem
(
)
data_object
Properties
3
Count
int
Gets the number of selected objects.
OnItemAdded
Action`1
Invoked when an item is added to the selection.
OnItemRemoved
Action`1
Invoked when an item is removed from the selection.
functions
Methods
7
Add
(
obj
)
bool
Adds an object to the selection.
Any
(
)
bool
Checks if the selection contains any objects.
Clear
(
)
Removes all objects from the selection, invoking OnItemRemoved for each.
Contains
(
obj
)
bool
Checks if an object is in the selection.
GetEnumerator
(
)
IEnumerator`1
Returns an enumerator that iterates through the selected objects in order.
Remove
(
obj
)
bool
Removes an object from the selection.
Set
(
obj
)
bool
Clears the selection and sets it to a single object.
functions
Static Methods
1
ConstructTitle
(
sys
)
string
Create a feasible title from the current selection
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.