Server LuaCsForBarotrauma
TestGameMode.cs
1 using System.Linq;
2 
3 namespace Barotrauma
4 {
5  partial class TestGameMode : GameMode
6  {
8  {
9  foreach (JobPrefab jobPrefab in JobPrefab.Prefabs.OrderBy(p => p.Identifier))
10  {
11  for (int i = 0; i < jobPrefab.InitialCount; i++)
12  {
13  var variant = Rand.Range(0, jobPrefab.Variants);
14  CrewManager.AddCharacterInfo(new CharacterInfo(CharacterPrefab.HumanSpeciesName, jobOrJobPrefab: jobPrefab, variant: variant));
15  }
16  }
17  }
18  }
19 }
Stores information about the Character that is needed between rounds in the menu etc....
static readonly Identifier HumanSpeciesName
Responsible for keeping track of the characters in the player crew, saving and loading their orders,...
GameModePreset preset
Definition: GameMode.cs:13
static readonly PrefabCollection< JobPrefab > Prefabs
Definition: JobPrefab.cs:75
TestGameMode(GameModePreset preset)
Definition: TestGameMode.cs:7