Core Rules
WoTC AD&D 2nd Edition -- Drakein API Reference
Loading...
Searching...
No Matches
CoreRules::IPart::ImageLoc Struct Reference

Resolved image-file location for a part. More...

#include <IPart.h>

Public Attributes

char path [260]
int index

Detailed Description

Resolved image-file location for a part.

Returned by IPart::GetImageLocation() after decoding the part's image_bitmap string against the platform configuration source (bitmaps_equip and userbmp keys; see IConfig.h).

path is empty when the part has no image set or the config key it would resolve against is itself empty. index is -1 for single-image bitmaps (CRE_-prefixed custom files) and for the no-image case; for sprite-sheet bitmaps (the numeric 1..700 range) it is the 0..49 offset within the sheet named by path.

Member Data Documentation

◆ index

int CoreRules::IPart::ImageLoc::index

◆ path

char CoreRules::IPart::ImageLoc::path[260]

The documentation for this struct was generated from the following file:
  • CoreRules/include/CoreRules/IPart.h