Struct DynamicVariableIdentity
- Namespace
- MonkeyLoader.Resonite
- Assembly
- MonkeyLoader.Resonite.Integration.dll
Fully describes the identity of a Dynamic Variable based on itsn Type, Name, and the Space it's a part of.
public readonly struct DynamicVariableIdentity : IEquatable<DynamicVariableIdentity>
- Implements
- Inherited Members
Constructors
DynamicVariableIdentity(DynamicVariableSpace, VariableIdentity)
Creates a new full Dynamic Variable identity for the given space.
public DynamicVariableIdentity(DynamicVariableSpace space, DynamicVariableSpace.VariableIdentity variableIdentity)
Parameters
space
DynamicVariableSpaceThe FrooxEngine.DynamicVariableSpace that this Dynamic Variable is a part of.
variableIdentity
DynamicVariableSpace.VariableIdentityThe Dynamic Variable's identity within the given
space
.
DynamicVariableIdentity(DynamicVariableSpace, Type, string)
Creates a new Dynamic Variable identity with the given details.
public DynamicVariableIdentity(DynamicVariableSpace space, Type type, string name)
Parameters
space
DynamicVariableSpaceThe FrooxEngine.DynamicVariableSpace that this Dynamic Variable is a part of.
type
TypeThe Type of this Dynamic Variable.
name
stringThe name of this Dynamic Variable.
Properties
Name
Gets the name of this Dynamic Variable.
public string Name { get; }
Property Value
Space
Gets the FrooxEngine.DynamicVariableSpace that this Dynamic Variable is a part of.
public DynamicVariableSpace Space { get; }
Property Value
- DynamicVariableSpace
Type
Gets the Type of this Dynamic Variable.
public Type Type { get; }
Property Value
Methods
Equals(DynamicVariableIdentity)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(DynamicVariableIdentity other)
Parameters
other
DynamicVariableIdentityAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
operator ==(DynamicVariableIdentity, DynamicVariableIdentity)
Determines whether two Dynamic Variable identities refer to the same exact one.
public static bool operator ==(DynamicVariableIdentity left, DynamicVariableIdentity right)
Parameters
left
DynamicVariableIdentityThe first Dynamic Variable identity.
right
DynamicVariableIdentityThe second Dynamic Varible identity.
Returns
- bool
true
if the identities are the same; otherwise,false
.
operator !=(DynamicVariableIdentity, DynamicVariableIdentity)
Determines whether two Dynamic Variable identities refer to different ones.
public static bool operator !=(DynamicVariableIdentity left, DynamicVariableIdentity right)
Parameters
left
DynamicVariableIdentityThe first Dynamic Variable identity.
right
DynamicVariableIdentityThe second Dynamic Varible identity.
Returns
- bool
true
if the identities are different; otherwise,false
.