plugy/PlugY/playerCustomData.h

56 lines
1.1 KiB
C
Raw Permalink Normal View History

/*=================================================================
File created by Yohann NICOLAS.
2021-01-04 07:07:29 +00:00
Data added to Player base-stucture
=================================================================*/
#pragma once
#include "common.h"
extern bool active_PlayerCustomData;
2017-01-23 19:34:12 +00:00
extern bool openSharedStashOnLoading;
struct Unit;
struct Stash
{
DWORD id;
2021-01-04 07:07:29 +00:00
union {
DWORD flags;
struct {
DWORD isShared:1; //
2017-01-23 19:34:12 +00:00
DWORD isIndex:1; //
2017-06-19 13:01:03 +00:00
DWORD isMainIndex:1; //
2017-01-23 19:34:12 +00:00
DWORD isReserved:1; // For swap items comand
};
};
char* name;
Unit* ptListItem;
Stash* previousStash;
Stash* nextStash;
};
struct PYPlayerData
{
union {
2021-01-04 07:07:29 +00:00
DWORD flags;
struct {
DWORD selfStashIsOpened:1; //
DWORD sharedStashIsOpened:1;//
DWORD showSharedStash:1; //
// DWORD notOnRealm:1; //set to 1 when the player is load from client or in SP
2021-01-04 07:07:29 +00:00
};
};
DWORD sharedGold;
DWORD nbSelfPages;
DWORD nbSharedPages;
Stash* currentStash;
Stash* selfStash;
Stash* sharedStash;
};
void Install_PlayerCustomData();
/*================================= END OF FILE =================================*/