Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.66 KB

World.SetMaxCapacity_T_(int).md

File metadata and controls

35 lines (23 loc) · 1.66 KB

World.SetMaxCapacity(int) Method

Sets up the current World to handle component of type T with a different maximum count than MaxCapacity.
If the type of component is already handled by the current World, does nothing.
This method is not thread safe.

public bool SetMaxCapacity<T>(int maxCapacity);

Type parameters

T

The type of component.

Parameters

maxCapacity System.Int32

The maximum number of component of type T that can exist in this World.

Returns

System.Boolean
Whether the maximum count has been setted or not.

Exceptions

System.ArgumentException
maxCapacity cannot be negative.