mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
* Initial commit.
:)
This commit is contained in:
40
source/World/LevelData.hpp
Normal file
40
source/World/LevelData.hpp
Normal file
@@ -0,0 +1,40 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "Utils.hpp"
|
||||
#include "Vec3.hpp"
|
||||
#include "Inventory.hpp"
|
||||
|
||||
struct PlayerData
|
||||
{
|
||||
Vec3 m_pos;
|
||||
Vec3 m_vel;
|
||||
float m_pitch;
|
||||
float m_yaw;
|
||||
float m_distanceFallen;
|
||||
short field_24;
|
||||
short field_26;
|
||||
bool field_28;
|
||||
int m_hotbar[C_MAX_HOTBAR_ITEMS];
|
||||
|
||||
void loadPlayer(Player* player);
|
||||
};
|
||||
|
||||
struct LevelData
|
||||
{
|
||||
LevelData();
|
||||
LevelData(long seed, const std::string&, int);
|
||||
|
||||
long m_seed = 0;
|
||||
Pos m_spawnPos;
|
||||
long field_10 = 0;
|
||||
int field_14 = 0;
|
||||
int field_18 = 0;
|
||||
int field_1C = 0;
|
||||
int field_20 = 0;
|
||||
PlayerData m_LocalPlayerData;
|
||||
int m_nPlayers = -1;
|
||||
std::string field_78;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user