Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ RegisterService< T >()

void ReLogic.OS.Platform.RegisterService< T > ( T service)
inlineprotectedinherited
Type Constraints
T :class 

Definition at line 30 of file Platform.cs.

30 : class
31 {
32 if (_services.Has<T>())
33 {
34 _services.Remove<T>();
35 }
36 _services.Register(service);
37 }
TypeInstanceCollection< object > _services
Definition Platform.cs:15

References ReLogic.OS.Platform._services, and ReLogic.Utilities.TypeInstanceCollection< BaseType >.Has().