OpenFusion/src/Player.hpp

50 lines
1.0 KiB
C++
Raw Normal View History

2020-08-25 18:42:52 +00:00
#pragma once
2020-08-18 20:42:30 +00:00
#include <string>
#include <cstring>
#include "CNProtocol.hpp"
#include "CNStructs.hpp"
#define ACTIVE_MISSION_COUNT 6
#define PC_MAXHEALTH(level) (925 + 75 * (level))
2020-08-18 20:42:30 +00:00
struct Player {
int accountId;
2020-08-18 20:42:30 +00:00
int64_t SerialKey;
int32_t iID;
uint64_t FEKey;
int level;
int HP;
int slot; // player slot, not nano slot
int32_t money;
int32_t fusionmatter;
int32_t batteryW;
int32_t batteryN;
2020-08-18 20:42:30 +00:00
sPCStyle PCStyle;
sPCStyle2 PCStyle2;
sNano Nanos[37]; // acquired nanos
int equippedNanos[3];
int activeNano; // active nano (index into Nanos)
int8_t iPCState;
int32_t iWarpLocationFlag;
int64_t aSkywayLocationFlag[2];
2020-09-18 07:10:30 +00:00
int32_t iConditionBitFlag;
2020-08-18 20:42:30 +00:00
int x, y, z, angle;
sItemBase Equip[AEQUIP_COUNT];
sItemBase Inven[AINVEN_COUNT];
sItemBase Bank[ABANK_COUNT];
sItemTrade Trade[12];
int32_t moneyInTrade;
bool isTrading;
bool isTradeConfirm;
bool IsGM;
2020-09-13 18:45:51 +00:00
int64_t aQuestFlag[16];
int tasks[ACTIVE_MISSION_COUNT];
sItemBase QInven[AQINVEN_COUNT];
2020-08-18 20:42:30 +00:00
};