mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-05-16 23:11:42 +00:00
Fill in lookup start.
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include "Game/IW3/IW3.h"
|
#include "Game/IW3/IW3.h"
|
||||||
#include "LightDef/LightDefCommon.h"
|
#include "LightDef/LightDefCommon.h"
|
||||||
|
#include "Game/IW3/LightDef/LightDefAssetCreationStateIW3.h"
|
||||||
#include "Utils/Logging/Log.h"
|
#include "Utils/Logging/Log.h"
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
@@ -37,6 +38,8 @@ namespace
|
|||||||
auto* lightDef = m_memory.Alloc<GfxLightDef>();
|
auto* lightDef = m_memory.Alloc<GfxLightDef>();
|
||||||
lightDef->name = m_memory.Dup(assetName.c_str());
|
lightDef->name = m_memory.Dup(assetName.c_str());
|
||||||
|
|
||||||
|
context.GetZoneAssetCreationState<LightDefAssetCreationState>().SetLightDefLookupStart(lightDef, context);
|
||||||
|
|
||||||
AssetRegistration<AssetLightDef> registration(assetName, lightDef);
|
AssetRegistration<AssetLightDef> registration(assetName, lightDef);
|
||||||
|
|
||||||
std::string imageName(static_cast<size_t>(imageNameSize), '\0');
|
std::string imageName(static_cast<size_t>(imageNameSize), '\0');
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#include "LightDefLoaderIW4.h"
|
#include "LightDefLoaderIW4.h"
|
||||||
|
|
||||||
#include "Game/IW4/IW4.h"
|
#include "Game/IW4/IW4.h"
|
||||||
|
#include "Game/IW4/LightDef/LightDefAssetCreationStateIW4.h"
|
||||||
#include "LightDef/LightDefCommon.h"
|
#include "LightDef/LightDefCommon.h"
|
||||||
#include "Utils/Logging/Log.h"
|
#include "Utils/Logging/Log.h"
|
||||||
|
|
||||||
@@ -37,6 +38,8 @@ namespace
|
|||||||
auto* lightDef = m_memory.Alloc<GfxLightDef>();
|
auto* lightDef = m_memory.Alloc<GfxLightDef>();
|
||||||
lightDef->name = m_memory.Dup(assetName.c_str());
|
lightDef->name = m_memory.Dup(assetName.c_str());
|
||||||
|
|
||||||
|
context.GetZoneAssetCreationState<LightDefAssetCreationState>().SetLightDefLookupStart(lightDef, context);
|
||||||
|
|
||||||
AssetRegistration<AssetLightDef> registration(assetName, lightDef);
|
AssetRegistration<AssetLightDef> registration(assetName, lightDef);
|
||||||
|
|
||||||
std::string imageName(static_cast<size_t>(imageNameSize), '\0');
|
std::string imageName(static_cast<size_t>(imageNameSize), '\0');
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#include "LightDefLoaderIW5.h"
|
#include "LightDefLoaderIW5.h"
|
||||||
|
|
||||||
#include "Game/IW5/IW5.h"
|
#include "Game/IW5/IW5.h"
|
||||||
|
#include "Game/IW5/LightDef/LightDefAssetCreationStateIW5.h"
|
||||||
#include "LightDef/LightDefCommon.h"
|
#include "LightDef/LightDefCommon.h"
|
||||||
#include "Utils/Logging/Log.h"
|
#include "Utils/Logging/Log.h"
|
||||||
|
|
||||||
@@ -32,6 +33,8 @@ namespace
|
|||||||
auto* lightDef = m_memory.Alloc<GfxLightDef>();
|
auto* lightDef = m_memory.Alloc<GfxLightDef>();
|
||||||
lightDef->name = m_memory.Dup(assetName.c_str());
|
lightDef->name = m_memory.Dup(assetName.c_str());
|
||||||
|
|
||||||
|
context.GetZoneAssetCreationState<LightDefAssetCreationState>().SetLightDefLookupStart(lightDef, context);
|
||||||
|
|
||||||
AssetRegistration<AssetLightDef> registration(assetName, lightDef);
|
AssetRegistration<AssetLightDef> registration(assetName, lightDef);
|
||||||
|
|
||||||
int8_t attenuationSamplerState;
|
int8_t attenuationSamplerState;
|
||||||
|
|||||||
Reference in New Issue
Block a user