Create basic Story classes and parameterize monsters in Battle scene

This commit is contained in:
henriquenakashima 2020-09-26 23:04:14 -04:00
parent 6181a7d50c
commit 0d7f4f4954
17 changed files with 268 additions and 48 deletions

View file

@ -0,0 +1,24 @@
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;}
}