Jump to content

SFTH SNET User class


ronoazoro1231

Recommended Posts

class DB_CHARACTER_INFO
{
public:
	int serial = -1;//0xAC0
	int ForceType = -1;//0xAC4
	int Skin = -1;//0xAC8
	char skinCode[12];//0xACC
	int skinSerial = -1;//0xAD8
	int equipCount = -1;//0xADC

	char code[12];//0xB30

	class EquipmentInfo
	{
	public:
		int EquipDefineID = -1;
		int equipSerial = -1;
		EquipmentInfo(int _v1, int _v2) : EquipDefineID(_v1), equipSerial(_v2) {}
	};
	std::vector< EquipmentInfo*> pEquipments;

	char forceName[76];//0xC48
	int eChoiceForce = -1;//0xC94
	__int8 choiceType = -1;//0xC98
	__int8 FirstChoiceType = -1;//0xC99
	char charDataName[128];//0xC9A
	int byLobbyLocation;//0xD1A
	int bObserver;//0xD1C
	DB_CHARACTER_INFO(int _serial, int _ForceType, int _Skin, char _skinCode[12], int _skinSerial, int _equipCount,
	std::vector<EquipmentInfo*> _pEquipments,char _code[12],char _forceName[76],int _eChoiceForce,__int8 _choiceType,__int8 _FirstChoiceType,
		char _charDataName[128],int _byLobbyLocation,int _bObserver)
	{
		serial = _serial;
		ForceType = _ForceType;
		Skin = _Skin;
		strcpy_s(skinCode, _skinCode);
		skinSerial = _skinSerial;
		equipCount = _equipCount;
		pEquipments = _pEquipments;
		strcpy_s(code, _code);
		strcpy_s(forceName, _forceName);
		eChoiceForce = _eChoiceForce;
		choiceType = _choiceType;
		FirstChoiceType = _FirstChoiceType;
		strcpy_s(charDataName, _charDataName);
		byLobbyLocation = _byLobbyLocation;
		bObserver = _bObserver;
	}
	~DB_CHARACTER_INFO() {
		ZeroMemory(skinCode, sizeof(skinCode));
		ZeroMemory(code, sizeof(code));
		ZeroMemory(forceName, sizeof(forceName));
		ZeroMemory(charDataName, sizeof(charDataName));
	}
};
class DB_WEAPON_TYPE
{
public:
	int serial = -1;
	bool bPermit = false;
	int PrimaryDefineID = -1;
	char PrimaryCode[12];
	int PrimarySerial = -1;
	int SecondaryDefineID = -1;
	char SecondaryCode[12];
	int SecondarySerial = -1;
	int equipCount = -1;
	int equipDefineID = -1;
	char equipCode[12];
	int equipSerial = -1;

	DB_WEAPON_TYPE(int _serial, bool _bPermit, int _PrimaryDefineID, char _PrimaryCode[12], int _PrimarySerial, int _SecondaryDefineID, 
		char _SecondaryCode[12], int _SecondarySerial, int _equipCount,int _equipDefineID,char _equipCode[12],int _equipSerial)
	{
		serial = _serial;
		bPermit = _bPermit;
		PrimaryDefineID = _PrimaryDefineID;
		strcpy_s(PrimaryCode, _PrimaryCode);
		PrimarySerial = _PrimarySerial;
		SecondaryDefineID = _SecondaryDefineID;
		strcpy_s(SecondaryCode, _SecondaryCode);
		SecondarySerial = _SecondarySerial;
		equipCount = _equipCount;
		equipDefineID = _equipDefineID;
		strcpy_s(equipCode, _equipCode);
		equipSerial = _equipSerial;
	}

	~DB_WEAPON_TYPE() {
		ZeroMemory(PrimaryCode, sizeof(PrimaryCode));
		ZeroMemory(SecondaryCode, sizeof(SecondaryCode));
		ZeroMemory(equipCode, sizeof(equipCode));
	}
};

class SNET_USER
{
public:
	DB_WEAPON_TYPE* pWeapon = nullptr;
	DB_CHARACTER_INFO* pCharaInfo = nullptr;
	int live = -1;
	int udpID = -1;
	__int8 netID = -1;
	char username[12];
	int camp = -1;
	int clanID = -1;
	char clanName[12];
	int order = -1;
	int typeCount;
	SNET_USER(DB_WEAPON_TYPE* _pWeapon, DB_CHARACTER_INFO* _pCharaInfo,int _live, int _udpID, __int8 _netID, char _username[12], int _camp, int _clanID, char _clanName[12], int _order, int _typeCount)
	{
		pWeapon = _pWeapon;
		pCharaInfo = _pCharaInfo;
		live = _live;
		udpID = _udpID;
		netID = _netID;
		strcpy_s(username, _username);
		camp = _camp;
		clanID = _clanID;
		strcpy_s(clanName, _clanName);
		order = _order;
		typeCount = _typeCount;
	}
	~SNET_USER() {
		ZeroMemory(username, sizeof(username));
		ZeroMemory(clanName, sizeof(clanName));
	}
};

GameBase->SNetUser

  • Like 5
  • Wow 1
Link to comment
Share on other sites

  • Kaiii locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.

 

AdBlock Extension Detected!

depositphotos_220325684-stock-illustration-hand-holding-mobile-with-ad.jpg

 

Our website is made possible by displaying online Advertisements to our members.

Please disable AdBlock browser Extension first, to be able to use our Community.

You won't be able to access this page.

I've Disabled AdBlock