ACR_CreatureBehavior.GameObjectManager.GetGameObjectUnsafe C# (CSharp) Method

GetGameObjectUnsafe() private method

Resolve an object ID to a GameObject without checking for deleted objects that need garbage collection. This function should only be used by the PowerShell diagnostics infrastructure.
private GetGameObjectUnsafe ( uint ObjectId ) : ACR_CreatureBehavior.GameObject
ObjectId uint Supplies the object id to look up.
return ACR_CreatureBehavior.GameObject
        internal GameObject GetGameObjectUnsafe(uint ObjectId)
        {
            GameObject GameObj;

            if (ObjectId == CLRScriptBase.OBJECT_INVALID)
                return null;

            if (!GameObjectTable.TryGetValue(ObjectId, out GameObj))
                return null;

            return GameObj;
        }