Added Common Attachment Framework

-- Known issue -- the BR gun tooltips will double up if an item is using both the old attachment method and the new CAF

& Working files

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5234 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
MaddMugsy
2012-04-28 10:17:59 +00:00
parent 11cc056601
commit dafc7d8bec
10 changed files with 258 additions and 47 deletions
+8 -4
View File
@@ -767,8 +767,12 @@ extern OBJECTTYPE gTempObject;
typedef struct
{
UINT32 usItemClass;
UINT32 nasAttachmentClass; //CHRISL: Identify the class of attachment
UINT32 nasLayoutClass;
UINT64 nasAttachmentClass; //CHRISL: Identify the class of attachment
UINT64 nasLayoutClass;
//Madd: Common Attachment Framework: attach items based on matching connection points rather than using the old long attachmentinfo method
UINT64 ulAvailableAttachmentPoint;
UINT64 ulAttachmentPoint;
UINT8 ubAttachToPointAPCost; // cost to attach to any matching point
UINT16 ubClassIndex;
UINT8 ubCursor;
INT8 bSoundType;
@@ -1469,8 +1473,8 @@ typedef struct
{
UINT16 uiSlotIndex;
CHAR16 szSlotName[200];
UINT32 nasAttachmentClass;
UINT128 nasLayoutClass;
UINT64 nasAttachmentClass;
UINT64 nasLayoutClass;
UINT16 usDescPanelPosX;
UINT16 usDescPanelPosY;
BOOLEAN fMultiShot;