Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vehicleBaseObject::isOnGround and generate stub. #142

Merged
merged 1 commit into from
Jul 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions include/RED4ext/Scripting/Natives/Generated/vehicle/BaseObject.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@

// This file is generated from the Game's Reflection data

#include <RED4ext/Scripting/Natives/vehicleBaseObject.hpp>

namespace RED4ext
{
RED4EXT_ASSERT_SIZE(vehicle::BaseObject, 0xB90);
using vehicleBaseObject = vehicle::BaseObject;
using VehicleObject = vehicle::BaseObject;
} // namespace RED4ext

/*
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/NativeTypes.hpp>
Expand Down Expand Up @@ -31,5 +41,6 @@ RED4EXT_ASSERT_SIZE(BaseObject, 0xB90);
using vehicleBaseObject = vehicle::BaseObject;
using VehicleObject = vehicle::BaseObject;
} // namespace RED4ext
*/

// clang-format on
37 changes: 37 additions & 0 deletions include/RED4ext/Scripting/Natives/vehicleBaseObject.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#pragma once

#include <RED4ext/Common.hpp>
#include <RED4ext/NativeTypes.hpp>
#include <RED4ext/Scripting/Natives/Generated/game/Object.hpp>
#include <cstdint>

namespace RED4ext
{
namespace AI
{
struct Archetype;
}

namespace vehicle
{
struct BaseObject : game::Object
{
static constexpr const char* NAME = "vehicleBaseObject";
static constexpr const char* ALIAS = "VehicleObject";

uint8_t unk240[0x25C - 0x240]; // 240
bool isOnGround; // 25C
uint8_t unk25D[0x3A0 - 0x25D]; // 25D
Ref<AI::Archetype> archetype; // 3A0
uint8_t unk3B8[0x6D2 - 0x3B8]; // 3B8
bool isVehicleOnStateLocked; // 6D2
uint8_t unk6D3[0xB90 - 0x6D3]; // 6D3
};
RED4EXT_ASSERT_SIZE(BaseObject, 0xB90);
poirierlouis marked this conversation as resolved.
Show resolved Hide resolved
RED4EXT_ASSERT_OFFSET(BaseObject, isOnGround, 0x25C);
RED4EXT_ASSERT_OFFSET(BaseObject, archetype, 0x3A0);
RED4EXT_ASSERT_OFFSET(BaseObject, isVehicleOnStateLocked, 0x6D2);
} // namespace vehicle
using vehicleBaseObject = vehicle::BaseObject;
using VehicleObject = vehicle::BaseObject;
} // namespace RED4ext