Implement the Granny SDK 2.11 API the client uses on top of libgr2 (platform/EterGrnLib/GrannyRuntime.cpp, shim granny.h declared from the SDK header): file sections, type-definition vertex conversion, material textures by Usage, mesh/bone bindings, deformer, control clock/loop/ease and weighted SRT sampling. Port EterGrnLib (LODController, Material, Mesh, Model, ModelInstance*, Motion, Thing, ThingInstance, Util) plus EterLib GrpObjectInstance/GrpCollisionObject/CollisionData verbatim and drop their platform skeletons and pending stand-ins; register the gr2 resource factory; vertex/index buffers are CPU-side until the 2V2-e render adapter. app.UpdateGame/RenderGame now run 40250's bodies, reaching the CPythonApplication members through their singletons (the platform has no app object); CPythonGraphic joins GameSingletons in member order, and GetMousePosition reads the host cursor. port.login_flow asserts the main instance's PART_MAIN model has meshes, its diffuse image loaded and the WAIT motion moves the bones between frames; offline and live pass, port_gate macos PASS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
68 lines
1.2 KiB
C++
68 lines
1.2 KiB
C++
// Stand-in for the 40250 logic unit UserInterface/PythonItem.cpp, not ported yet: the members the ported units
|
|
// reference, as platform_stub.py stubs. Delete this file in the commit that ports the unit into port/
|
|
// (docs/PORT-PLAN.md).
|
|
#include "UserInterface/StdAfx.h"
|
|
#include "UserInterface/PythonItem.h"
|
|
|
|
#include "../../PlatformStub.h"
|
|
|
|
CPythonItem::CPythonItem()
|
|
{
|
|
MT_PLATFORM_STUB();
|
|
}
|
|
|
|
CPythonItem::~CPythonItem()
|
|
{
|
|
MT_PLATFORM_STUB();
|
|
}
|
|
|
|
auto CPythonItem::Destroy() -> void
|
|
{
|
|
MT_PLATFORM_STUB();
|
|
}
|
|
|
|
auto CPythonItem::PlayUseSound(DWORD) -> void
|
|
{
|
|
MT_PLATFORM_STUB();
|
|
}
|
|
|
|
auto CPythonItem::PlayDropSound(DWORD) -> void
|
|
{
|
|
MT_PLATFORM_STUB();
|
|
}
|
|
|
|
auto CPythonItem::PlayUsePotionSound() -> void
|
|
{
|
|
MT_PLATFORM_STUB();
|
|
}
|
|
|
|
auto CPythonItem::CreateItem(DWORD, DWORD, float, float, float, bool) -> void
|
|
{
|
|
MT_PLATFORM_STUB();
|
|
}
|
|
|
|
auto CPythonItem::DeleteItem(DWORD) -> void
|
|
{
|
|
MT_PLATFORM_STUB();
|
|
}
|
|
|
|
auto CPythonItem::DeleteAllItems() -> void
|
|
{
|
|
MT_PLATFORM_STUB();
|
|
}
|
|
|
|
auto CPythonItem::SetOwnership(DWORD, const char *) -> void
|
|
{
|
|
MT_PLATFORM_STUB();
|
|
}
|
|
|
|
auto CPythonItem::Render() -> void
|
|
{
|
|
MT_PLATFORM_STUB();
|
|
}
|
|
|
|
auto CPythonItem::Update(const POINT &) -> void
|
|
{
|
|
MT_PLATFORM_STUB();
|
|
}
|