TBaseList = class(TList)

Class of database lists

Name Result Description Code Params Examples
Count Integer Database list elements count
function Count: integer;
There are no arguments Для просмотра примера необходимо зарегистрироваться
ByIndex TBaseObject Get element from database list by index
function ByIndex(index: cardinal): TBaseObject;

Index - element list (starting from 0)

Для просмотра примера необходимо зарегистрироваться
ByID TBaseObject Get element from database list by identificator
function ByID(ID: cardinal; Level: cardinal): TBaseObject;

ID - element identificator

Level - element level

Для просмотра примера необходимо зарегистрироваться

Methods

Name Result Description
TL2Base.Items TBaseList Items list from database. Elements of list can be transformed to TBaseItem.
TL2Base.Skills TBaseList Skills list from database. Elements of list can be transformed to TBaseSkill.
TL2Base.Actions TBaseList Actions list from database. Elements of list can be transformed to TBaseAction.
TL2Base.NPC TBaseList NPCs list from database. Elements of list can be transformed to TBaseNpc.
TL2Base.NpcStr TBaseList NPCs dialogs list from database
TL2Base.MsgStr TBaseList System messages list from database
TL2Base.SysStr TBaseList System captions list fro database