![]() |
Core Rules
WoTC AD&D 2nd Edition -- Drakein API Reference
|
#include <IPropertyRecord.h>
Public Types | |
| using | record_type = IPropertyOb |
Public Member Functions | |
| virtual | ~IPropertyRecord ()=default |
| virtual int | GetCount () const =0 |
| virtual IPropertyOb * | GetAt (int index)=0 |
| virtual IPropertyOb * | FindById (long id)=0 |
| Find a single property by its m_id. | |
| virtual int | GetOwnerCount (int owner_kind, long owner_id) const =0 |
| Number of properties whose m_owner_kind / m_owner_id match the given pair. | |
| virtual IPropertyOb * | GetOwnedAt (int owner_kind, long owner_id, int index)=0 |
| The i-th property matching the given owner. | |
| virtual int | GetPartyOwnerCount (const char *party_name) const =0 |
| Number of properties owned by the named party. | |
| virtual IPropertyOb * | GetPartyOwnedAt (const char *party_name, int index)=0 |
| The i-th property owned by the named party. | |
| virtual long | Add (IPropertyOb *property)=0 |
| Add a property to the catalog. | |
| virtual bool | Remove (int index)=0 |
| Remove a property by index. Frees the pointer. | |
| virtual bool | RemoveById (long id)=0 |
| Remove a property by id. Frees the pointer. | |
| virtual void | Clear ()=0 |
| Drop all properties (frees pointers). | |
| virtual bool | IsDirty () const =0 |
| True if SaveDatabases should write Drakein.dat (this catalog's slot). | |
|
virtualdefault |
|
pure virtual |
Add a property to the catalog.
Assigns property->SetId() from the next monotonic id. Catalog takes ownership of the pointer.
|
pure virtual |
Drop all properties (frees pointers).
|
pure virtual |
Find a single property by its m_id.
|
pure virtual |
|
pure virtual |
|
pure virtual |
The i-th property matching the given owner.
Index is zero-based and dense over the matching subset. Returns nullptr when index is out of range.
|
pure virtual |
Number of properties whose m_owner_kind / m_owner_id match the given pair.
|
pure virtual |
The i-th property owned by the named party.
|
pure virtual |
Number of properties owned by the named party.
| party_name | must be non-null; empty matches no properties. |
|
pure virtual |
True if SaveDatabases should write Drakein.dat (this catalog's slot).
Aggregates per-record IsDirty + slot- list mutations (add / remove) + next_id changes since the last successful save.
|
pure virtual |
Remove a property by index. Frees the pointer.
|
pure virtual |
Remove a property by id. Frees the pointer.