Create basic Story classes and parameterize monsters in Battle scene
This commit is contained in:
parent
6181a7d50c
commit
0d7f4f4954
17 changed files with 268 additions and 48 deletions
24
Assets/Battle/BattleParameters.cs
Normal file
24
Assets/Battle/BattleParameters.cs
Normal 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;}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue