All 5 phases of the open-source Decal rebuild: Phase 1: 14 decompiled .NET projects (Interop.*, Adapter, FileService, DecalUtil) Phase 2: 10 native DLLs rewritten as C# COM servers with matching GUIDs - DecalDat, DHS, SpellFilter, DecalInput, DecalNet, DecalFilters - Decal.Core, DecalControls, DecalRender, D3DService Phase 3: C++ shims for Inject.DLL (D3D9 hooking) and LauncherHook.DLL Phase 4: DenAgent WinForms tray application Phase 5: WiX installer and build script 25 C# projects building with 0 errors. Native C++ projects require VS 2022 + Windows SDK (x86). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
106 lines
1.5 KiB
C++
106 lines
1.5 KiB
C++
// Enchantment.cpp : Implementation of CDecalFiltersApp and DLL registration.
|
|
|
|
#include "stdafx.h"
|
|
#include "DecalFilters.h"
|
|
#include "Enchantment.h"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
|
|
STDMETHODIMP Enchantment::get_SpellID(long *pVal)
|
|
{
|
|
*pVal = SpellID;
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
STDMETHODIMP Enchantment::put_SpellID(long newVal)
|
|
{
|
|
SpellID = newVal;
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
STDMETHODIMP Enchantment::get_Layer(long *pVal)
|
|
{
|
|
*pVal = Layer;
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
STDMETHODIMP Enchantment::put_Layer(long newVal)
|
|
{
|
|
Layer = newVal;
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
STDMETHODIMP Enchantment::get_TimeRemaining(long *pVal)
|
|
{
|
|
*pVal = SecondsLeft;
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
STDMETHODIMP Enchantment::put_TimeRemaining(long newVal)
|
|
{
|
|
SecondsLeft = newVal;
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
STDMETHODIMP Enchantment::get_Affected(long *pVal)
|
|
{
|
|
*pVal = Affected;
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
STDMETHODIMP Enchantment::put_Affected(long newVal)
|
|
{
|
|
Affected = newVal;
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
STDMETHODIMP Enchantment::get_AffectedMask(long *pVal)
|
|
{
|
|
*pVal = AffectMask;
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
STDMETHODIMP Enchantment::put_AffectedMask(long newVal)
|
|
{
|
|
AffectMask = newVal;
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
STDMETHODIMP Enchantment::get_Family(long *pVal)
|
|
{
|
|
*pVal = Family;
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
STDMETHODIMP Enchantment::put_Family(long newVal)
|
|
{
|
|
Family = newVal;
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
STDMETHODIMP Enchantment::get_Adjustment(double *pVal)
|
|
{
|
|
*pVal = Adjustment;
|
|
|
|
return S_OK;
|
|
}
|
|
|
|
STDMETHODIMP Enchantment::put_Adjustment(double newVal)
|
|
{
|
|
Adjustment = newVal;
|
|
|
|
return S_OK;
|
|
}
|