Skip to content

Commit

Permalink
working for 2.01
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed Oct 10, 2023
1 parent 207a21d commit 2738c89
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions requirements.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Requirements
* RED4ext 1.13.1+
* ArchiveXL 1.4.5+
* Redscript 0.5.14+
* RED4ext 1.17.0+
* ArchiveXL 1.7.0+
* Redscript 0.5.16+
8 changes: 4 additions & 4 deletions src/red4ext/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ RED4EXT_C_EXPORT void RED4EXT_CALL PostRegisterTypes() {

// expose the minimap members to the scripts
auto ms = rtti->GetClass("gameuiMinimapContainerController");
ms->props.PushBack(RED4ext::CProperty::Create(rtti->GetType("array:Vector4"), "questPoints", nullptr, 0x1E0));
ms->props.PushBack(RED4ext::CProperty::Create(rtti->GetType("Bool"), "hasQuestMappin", nullptr, 0x1F0));
ms->props.PushBack(RED4ext::CProperty::Create(rtti->GetType("array:Vector4"), "poiPoints", nullptr, 0x208));
ms->props.PushBack(RED4ext::CProperty::Create(rtti->GetType("Bool"), "hasPoiMappin", nullptr, 0x218));
ms->props.PushBack(RED4ext::CProperty::Create(rtti->GetType("array:Vector4"), "questPoints", nullptr, 0x1F8));
ms->props.PushBack(RED4ext::CProperty::Create(rtti->GetType("Bool"), "hasQuestMappin", nullptr, 0x208));
ms->props.PushBack(RED4ext::CProperty::Create(rtti->GetType("array:Vector4"), "poiPoints", nullptr, 0x220));
ms->props.PushBack(RED4ext::CProperty::Create(rtti->GetType("Bool"), "hasPoiMappin", nullptr, 0x230));

auto getQuestMappin =
RED4ext::CClassFunction::Create(ms, "GetQuestMappin", "GetQuestMappin", &GetQuestMappin, {.isNative = true});
Expand Down

0 comments on commit 2738c89

Please sign in to comment.