2022-03-05 12:44:06 +02:00
|
|
|
|
#ifndef __METIN_II_COMMON_BUILDING_H__
|
|
|
|
|
#define __METIN_II_COMMON_BUILDING_H__
|
|
|
|
|
|
|
|
|
|
namespace building
|
|
|
|
|
{
|
|
|
|
|
enum
|
|
|
|
|
{
|
|
|
|
|
OBJECT_MATERIAL_MAX_NUM = 5,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
typedef struct SLand
|
|
|
|
|
{
|
|
|
|
|
DWORD dwID;
|
2022-03-12 11:39:41 +02:00
|
|
|
|
int lMapIndex;
|
|
|
|
|
int x, y;
|
|
|
|
|
int width, height;
|
2022-03-05 12:44:06 +02:00
|
|
|
|
DWORD dwGuildID;
|
|
|
|
|
BYTE bGuildLevelLimit;
|
|
|
|
|
DWORD dwPrice;
|
|
|
|
|
} TLand;
|
|
|
|
|
|
|
|
|
|
typedef struct SObjectMaterial
|
|
|
|
|
{
|
|
|
|
|
DWORD dwItemVnum;
|
|
|
|
|
DWORD dwCount;
|
|
|
|
|
} TObjectMaterial;
|
|
|
|
|
|
|
|
|
|
typedef struct SObjectProto
|
|
|
|
|
{
|
|
|
|
|
DWORD dwVnum;
|
|
|
|
|
DWORD dwPrice;
|
|
|
|
|
|
|
|
|
|
TObjectMaterial kMaterials[OBJECT_MATERIAL_MAX_NUM];
|
|
|
|
|
|
|
|
|
|
DWORD dwUpgradeVnum;
|
|
|
|
|
DWORD dwUpgradeLimitTime;
|
2022-03-12 11:39:41 +02:00
|
|
|
|
int lLife;
|
|
|
|
|
int lRegion[4];
|
2022-03-05 12:44:06 +02:00
|
|
|
|
|
|
|
|
|
DWORD dwNPCVnum;
|
2022-03-12 11:39:41 +02:00
|
|
|
|
int lNPCX;
|
|
|
|
|
int lNPCY;
|
2022-03-05 12:44:06 +02:00
|
|
|
|
|
|
|
|
|
DWORD dwGroupVnum; // <20><><EFBFBD><EFBFBD> <20><EFBFBD><D7B7><EFBFBD> <20>ϳ<EFBFBD><CFB3><EFBFBD> <20>Ǽ<EFBFBD><C7BC><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
DWORD dwDependOnGroupVnum; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>־<EFBFBD><D6BE><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><EFBFBD>
|
|
|
|
|
} TObjectProto;
|
|
|
|
|
|
|
|
|
|
typedef struct SObject
|
|
|
|
|
{
|
|
|
|
|
DWORD dwID;
|
|
|
|
|
DWORD dwLandID;
|
|
|
|
|
DWORD dwVnum;
|
2022-03-12 11:39:41 +02:00
|
|
|
|
int lMapIndex;
|
|
|
|
|
int x, y;
|
2022-03-05 12:44:06 +02:00
|
|
|
|
|
|
|
|
|
float xRot;
|
|
|
|
|
float yRot;
|
|
|
|
|
float zRot;
|
2022-03-12 11:39:41 +02:00
|
|
|
|
int lLife;
|
2022-03-05 12:44:06 +02:00
|
|
|
|
} TObject;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|