コード例 #1
0
/**
 * Add a newly created object to the name hash tables and the object array
 *
 * @param Name name to assign to this uobject
 */
void UObjectBase::AddObject(FName InName)
{
	Name = InName;
	if (!IsInGameThread())
	{
		ObjectFlags |= RF_Async;
	}
	AllocateUObjectIndexForCurrentThread(this);
	check(InName != NAME_None && InternalIndex >= 0);
	HashObject(this);
	check(IsValidLowLevel());
}
コード例 #2
0
ファイル: VObjec.cpp プロジェクト: xukunn1226/VRI3
void VObject::AddObject(INT Index)
{
	if( Index == INDEX_NONE )
	{
		Index = _GObjObjects.size();
		_GObjObjects.push_back(NULL);
	}

	_GObjObjects[Index] = this;
	_Index = Index;
	HashObject();
}