Click or drag to resize
MyEntityIdentifierAllocateId Method

[This is preliminary documentation and is subject to change.]

Allocated new entity ID (won't add to list) Entity with this ID should be added immediatelly

Namespace: VRage
Assembly: VRage.Game (in VRage.Game.dll) Version: 1.0.0.0
Syntax
C#
public static long AllocateId(
	MyEntityIdentifierID_OBJECT_TYPE objectType = MyEntityIdentifierID_OBJECT_TYPE.ENTITY,
	MyEntityIdentifierID_ALLOCATION_METHOD generationMethod = MyEntityIdentifierID_ALLOCATION_METHOD.RANDOM
)

Parameters

objectType (Optional)
Type: VRageMyEntityIdentifierID_OBJECT_TYPE

[Missing <param name="objectType"/> documentation for "M:VRage.MyEntityIdentifier.AllocateId(VRage.MyEntityIdentifier.ID_OBJECT_TYPE,VRage.MyEntityIdentifier.ID_ALLOCATION_METHOD)"]

generationMethod (Optional)
Type: VRageMyEntityIdentifierID_ALLOCATION_METHOD

[Missing <param name="generationMethod"/> documentation for "M:VRage.MyEntityIdentifier.AllocateId(VRage.MyEntityIdentifier.ID_OBJECT_TYPE,VRage.MyEntityIdentifier.ID_ALLOCATION_METHOD)"]

Return Value

Type: Int64

[Missing <returns> documentation for "M:VRage.MyEntityIdentifier.AllocateId(VRage.MyEntityIdentifier.ID_OBJECT_TYPE,VRage.MyEntityIdentifier.ID_ALLOCATION_METHOD)"]

See Also