![]() |
Paradox Game Engine
v1.0.0 beta06
|
Base interface for Guid containers, object that can store a unique identifier for a collection of object. 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. More... | |
| Guid | GetGuid (object obj) |
| Gets the Guid for a given object, if available. More... | |
| 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. More... | |
| bool | UnregisterGuid (Guid guid) |
| Removes a Guid that was previously registered. More... | |
| void | Clear () |
| Clear the IGuidContainer, removing everything it references. More... | |
Base interface for Guid containers, object that can store a unique identifier for a collection of object.
Specialization of this interface will usually hold references on objects until they are unregistered or until the container is cleared.
Definition at line 11 of file IGuidContainer.cs.
| void SiliconStudio.Quantum.IGuidContainer.Clear | ( | ) |
Clear the IGuidContainer, removing everything it references.
Implemented in SiliconStudio.Quantum.GuidContainer.
| Guid SiliconStudio.Quantum.IGuidContainer.GetGuid | ( | object | obj | ) |
Gets the Guid for a given object, if available.
| obj | The object. |
Implemented in SiliconStudio.Quantum.GuidContainer.
| Guid SiliconStudio.Quantum.IGuidContainer.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. |
Implemented in SiliconStudio.Quantum.GuidContainer.
| void SiliconStudio.Quantum.IGuidContainer.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. |
Implemented in SiliconStudio.Quantum.GuidContainer.
| bool SiliconStudio.Quantum.IGuidContainer.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.Implemented in SiliconStudio.Quantum.GuidContainer.