![]() |
Paradox Game Engine
v1.0.0 beta06
|
Handles Guid generation and storage for model nodes. More...
Public Member Functions | |||||
Guid | GetOrCreateGuid (object obj) | ||||
Gets or or create a Guid for a given object. If the object is null , a new Guid will be returned.
| |||||
Guid | GetGuid (object obj) | ||||
Gets the Guid for a given object, if available.
| |||||
void | RegisterGuid (Guid guid, object obj) | ||||
Register the given Guid to the given object. If a Guid is already associated to this object, it is replaced by the new one.
| |||||
bool | UnregisterGuid (Guid guid) | ||||
Removes a Guid that was previously registered.
| |||||
void | Clear () | ||||
Clear the IGuidContainer, removing everything it references. More... | |||||
Handles Guid generation and storage for model nodes.
This class will hold references on objects until they are unregistered or until the container is cleared.
This class is thread safe.
Definition at line 14 of file GuidContainer.cs.
void SiliconStudio.Quantum.GuidContainer.Clear | ( | ) |
Clear the IGuidContainer, removing everything it references.
Implements SiliconStudio.Quantum.IGuidContainer.
Definition at line 66 of file GuidContainer.cs.
Guid SiliconStudio.Quantum.GuidContainer.GetGuid | ( | object | obj | ) |
Gets the Guid for a given object, if available.
obj | The object. |
Implements SiliconStudio.Quantum.IGuidContainer.
Definition at line 35 of file GuidContainer.cs.
Guid SiliconStudio.Quantum.GuidContainer.GetOrCreateGuid | ( | object | obj | ) |
Gets or or create a Guid for a given object. If the object is null
, a new Guid will be returned.
obj | The object. |
Implements SiliconStudio.Quantum.IGuidContainer.
Definition at line 19 of file GuidContainer.cs.
void SiliconStudio.Quantum.GuidContainer.RegisterGuid | ( | Guid | guid, |
object | obj | ||
) |
Register the given Guid to the given object. If a Guid is already associated to this object, it is replaced by the new one.
guid | The Guid to register. |
obj | The object to register. |
Implements SiliconStudio.Quantum.IGuidContainer.
Definition at line 45 of file GuidContainer.cs.
bool SiliconStudio.Quantum.GuidContainer.UnregisterGuid | ( | Guid | guid | ) |
Removes a Guid that was previously registered.
guid | The Guid to remove. |
true
if a Guid has been actually removed, false
otherwise.Implements SiliconStudio.Quantum.IGuidContainer.
Definition at line 56 of file GuidContainer.cs.