I'm trying to put this Game object inside a user variable but it gives error saying "Cannot set variable type for value":
Code: Select all
public class Game implements SerializableSFSType {
public ArrayList<Card> HomeCards;
public ArrayList<Card> AwayCards;
}
Code: Select all
public class Card implements SerializableSFSType {
public int Damage;
public int Health;
public Card(int damage, int health) {
Damage = damage;
Health = health;
}
}
What I'm missing?