28 lines
666 B
C#
28 lines
666 B
C#
|
|
using System.Collections;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using UnityEngine;
|
|||
|
|
|
|||
|
|
public enum ActionType {
|
|||
|
|
SKILL,
|
|||
|
|
ITEM
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
[System.Serializable]
|
|||
|
|
public class LoadoutAction {
|
|||
|
|
public ActionType type;
|
|||
|
|
public int actionIndex; // Inventory slot index for items, skill index for skills.
|
|||
|
|
public char key; // Keyboard key assigned to the loadout action.
|
|||
|
|
|
|||
|
|
public LoadoutAction(ActionType type, int actionIndex, char key) {
|
|||
|
|
this.type = type;
|
|||
|
|
this.actionIndex = actionIndex;
|
|||
|
|
this.key = key;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[System.Serializable]
|
|||
|
|
public class Loadout {
|
|||
|
|
public List<LoadoutAction> slots;
|
|||
|
|
|
|||
|
|
// TODO: Add slot interface functions
|
|||
|
|
};
|