コード例 #1
0
 private HumanoidCharacterProfile(
     string name,
     string species,
     int age,
     Sex sex,
     Gender gender,
     HumanoidCharacterAppearance appearance,
     ClothingPreference clothing,
     BackpackPreference backpack,
     Dictionary <string, JobPriority> jobPriorities,
     PreferenceUnavailableMode preferenceUnavailable,
     List <string> antagPreferences)
 {
     Name                  = name;
     Species               = species;
     Age                   = age;
     Sex                   = sex;
     Gender                = gender;
     Appearance            = appearance;
     Clothing              = clothing;
     Backpack              = backpack;
     _jobPriorities        = jobPriorities;
     PreferenceUnavailable = preferenceUnavailable;
     _antagPreferences     = antagPreferences;
 }
コード例 #2
0
 public HumanoidCharacterProfile(
     string name,
     int age,
     Sex sex,
     HumanoidCharacterAppearance appearance,
     IReadOnlyDictionary <string, JobPriority> jobPriorities,
     PreferenceUnavailableMode preferenceUnavailable)
     : this(name, age, sex, appearance, new Dictionary <string, JobPriority>(jobPriorities),
            preferenceUnavailable)
 {
 }
コード例 #3
0
 public HumanoidCharacterProfile(
     string name,
     int age,
     Sex sex,
     Gender gender,
     HumanoidCharacterAppearance appearance,
     ClothingPreference clothing,
     IReadOnlyDictionary <string, JobPriority> jobPriorities,
     PreferenceUnavailableMode preferenceUnavailable,
     IReadOnlyList <string> antagPreferences)
     : this(name, age, sex, gender, appearance, clothing, new Dictionary <string, JobPriority>(jobPriorities),
            preferenceUnavailable, new List <string>(antagPreferences))
 {
 }
コード例 #4
0
 private HumanoidCharacterProfile(
     string name,
     int age,
     Sex sex,
     HumanoidCharacterAppearance appearance,
     Dictionary <string, JobPriority> jobPriorities,
     PreferenceUnavailableMode preferenceUnavailable)
 {
     Name                  = name;
     Age                   = age;
     Sex                   = sex;
     Appearance            = appearance;
     _jobPriorities        = jobPriorities;
     PreferenceUnavailable = preferenceUnavailable;
 }
コード例 #5
0
 public HumanoidCharacterProfile WithPreferenceUnavailable(PreferenceUnavailableMode mode)
 {
     return(new HumanoidCharacterProfile(Name, Age, Sex, Appearance, _jobPriorities, mode, _antagPreferences));
 }