mixedcards/Assets/Battle/BattleParameters.cs

24 lines
790 B
C#

public class BattleParameters {
private MonsterId[] monsterIds;
private MCardId[] mCardIds;
private int[] mCardOwnerIndexes;
public BattleParameters() {
}
public void SetMonsters(MonsterId[] monsterIds, MCardId[] mCardIds, int[] mCardOwnerIndexes) {
if (mCardIds.Length != mCardOwnerIndexes.Length) {
throw new System.ArgumentException(
"mCardIds and mCardOwnerIndexes need to have the same length");
}
this.monsterIds = monsterIds;
this.mCardIds = mCardIds;
this.mCardOwnerIndexes = mCardOwnerIndexes;
}
public MonsterId[] MonsterIds {get => this.monsterIds;}
public MCardId[] MCardIds {get => this.mCardIds;}
public int[] MCardOwnerIndexes {get => this.mCardOwnerIndexes;}
}