/// <summary> /// Adds a new employee to the crew manifest, generating new records. /// Will not generate certain records for certain jobs, like security records for AI. /// </summary> /// <returns>A new crew manifest entry.</returns> public CrewManifestEntry AddMember(PlayerScript script, JobType jobType) { CrewManifestEntry entry = new CrewManifestEntry() { Name = script.playerName, JobType = jobType, }; CrewManifest.Add(entry); //Updates clients about the amount of this job ServerAddJob(jobType); entry.SecurityRecord = GenerateSecurityRecord(script, jobType); SecurityRecords.Add(entry.SecurityRecord); return(entry); }
void OnRoundRestart(Scene scene, Scene newScene) { CrewManifest.Clear(); SecurityRecords.Clear(); }