private void Setup(LevelArenaSetData templateArg) { setNum = templateArg.setNum; setName = templateArg.setName; totalArenasInSet = templateArg.totalArenasInSet; }
/// <summary> /// Returns an invalid arena set. /// Used for denoting when there will be no next arena. /// </summary> /// <returns></returns> private LevelArenaSetData GetEndArenaSetData() { LevelArenaSetData returnArenaSetData = new LevelArenaSetData(); returnArenaSetData.setNum = totalNumberOfArenaSets + 1; return(returnArenaSetData); }
/// <summary> /// Sets the arena set data based on the given set number. /// </summary> /// <param name="arenaSetNumArg"></param> private void SetupArenaSetData(int arenaSetNumArg) { // else if all arena sets have been completed if (arenaSetNumArg > totalNumberOfArenaSets) { // set arena set to an invalid arena set to denote that no next arena arenaSetData = GetEndArenaSetData(); } // else still some arena sets left else { // get set template related to given set number LevelArenaSetDataTemplate startingSetTemp = AssetRefMethods. LoadBundleAssetLevelArenaSetDataTemplate(arenaSetNumArg); // set the set data from the template arenaSetData = new LevelArenaSetData(startingSetTemp); } }
/// <summary> /// Sets the arena data to the tutorial start. /// </summary> public void SetupTutorialArenaData() { ResetRunProgress(); arenaSetData = GetTutorialArenaSetData(); }
public LevelArenaSetData(LevelArenaSetData templateArg) { Setup(templateArg); }