Example #1
0
    public static void Swap(int index1, int index2)
    {
        StoredMonster temp = storage[index1];

        storage[index1] = storage[index2];
        storage[index2] = temp;
    }
Example #2
0
    public static void Add(string name, int exp)
    {
        StoredMonster sm = new StoredMonster();

        sm.monsterName = name;
        sm.exp         = exp;
        storage.Add(sm);
    }