v0.2.3e: added backend support for multiple quickslots (needs testing!)
This commit is contained in:
@@ -39,7 +39,9 @@ public class Belongings implements Iterable<Item> {
|
||||
|
||||
private Hero owner;
|
||||
|
||||
public Bag backpack;
|
||||
public Bag backpack;
|
||||
|
||||
public QuickSlot quickslot;
|
||||
|
||||
public KindOfWeapon weapon = null;
|
||||
public Armor armor = null;
|
||||
@@ -69,6 +71,8 @@ public class Belongings implements Iterable<Item> {
|
||||
bundle.put( ARMOR, armor );
|
||||
bundle.put( MISC1, misc1);
|
||||
bundle.put( MISC2, misc2);
|
||||
|
||||
quickslot.storePlaceholders( bundle );
|
||||
}
|
||||
|
||||
public void restoreFromBundle( Bundle bundle ) {
|
||||
@@ -92,6 +96,8 @@ public class Belongings implements Iterable<Item> {
|
||||
if (misc2 != null) {
|
||||
misc2.activate( owner );
|
||||
}
|
||||
|
||||
quickslot.restorePlaceholders(bundle);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
||||
Reference in New Issue
Block a user