mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-15 14:52:35 +02:00
17 lines
449 B
C#
17 lines
449 B
C#
namespace Robust.Client.Graphics.Clyde
|
|
{
|
|
internal partial class Clyde
|
|
{
|
|
// Use a single counter for RIDs inside Clyde.
|
|
// This way when I mix up RIDs between different systems it blows up quickly. Convenient huh.
|
|
|
|
// Also start these at 1 so 0 (uninitialized) is caught easily.
|
|
private long _nextRid = 1;
|
|
|
|
private ClydeHandle AllocRid()
|
|
{
|
|
return new(_nextRid++);
|
|
}
|
|
}
|
|
}
|