Make the item iterator capable of iterating over a cargo list
New snxtitem_cargo() initializes an iterator for a cargo list, with new enum ns_seltype member NS_GROUP and new struct nstr_item member next. Extend nxtitem() and nxtitemp() to step through the list.
This commit is contained in:
parent
7a4b7f75a0
commit
e7f5b517a0
5 changed files with 37 additions and 3 deletions
|
@ -674,6 +674,7 @@ extern void snxtitem_all(struct nstr_item *, int);
|
|||
extern void snxtitem_group(struct nstr_item *, int, char);
|
||||
extern void snxtitem_rewind(struct nstr_item *);
|
||||
extern int snxtitem_list(struct nstr_item *, int, int *, int);
|
||||
extern void snxtitem_cargo(struct nstr_item *, int, int, int);
|
||||
/* snxtsct.c */
|
||||
extern int snxtsct(struct nstr_sect *, char *);
|
||||
extern void snxtsct_area(struct nstr_sect *, struct range *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue