CandideServer.Helpers.RandomCitizenGenerator
Type JSONpublic class in CandideServer.Helpers
Type metadata
- Assembly
CandideServer - Namespace
CandideServer.Helpers - Base type
System.Object - Hash
97C3C4BA4C3FE74DA2A7B8E58600254C8FC18BE4FB1539B95DBC1E17C2CF722A
Relationships
Base type
System.Object
Fields
| Name | Visibility | Signature |
|---|---|---|
AfricanEyeColorWeightedList# | public | public System.Collections.Generic.List<System.ValueTuple<System.Byte, System.Single>> AfricanEyeColorWeightedList |
AfricanFemaleHairWeightedList# | public | public System.Collections.Generic.List<System.ValueTuple<System.Byte, System.Single>> AfricanFemaleHairWeightedList |
AfricanHairColorWeightedList# | public | public System.Collections.Generic.List<System.ValueTuple<System.Byte, System.Single>> AfricanHairColorWeightedList |
AfricanMaleHairWeightedList# | public | public System.Collections.Generic.List<System.ValueTuple<System.Byte, System.Single>> AfricanMaleHairWeightedList |
Backgrounds# | public | public System.String[] Backgrounds |
Buffs# | private | private System.String[] Buffs |
Debuffs# | private | private System.String[] Debuffs |
EarlyDebuffs# | private | private System.String[] EarlyDebuffs |
ReuseAvailableBuffsList# | private | private System.Collections.Generic.List<System.String> ReuseAvailableBuffsList |
RomanEyeColorWeightedList# | public | public System.Collections.Generic.List<System.ValueTuple<System.Byte, System.Single>> RomanEyeColorWeightedList |
RomanFemaleHairWeightedList# | public | public System.Collections.Generic.List<System.ValueTuple<System.Byte, System.Single>> RomanFemaleHairWeightedList |
RomanHairColorWeightedList# | public | public System.Collections.Generic.List<System.ValueTuple<System.Byte, System.Single>> RomanHairColorWeightedList |
RomanMaleHairWeightedList# | public | public System.Collections.Generic.List<System.ValueTuple<System.Byte, System.Single>> RomanMaleHairWeightedList |
ShoeColorWeightedList# | public | public System.Collections.Generic.List<System.ValueTuple<System.Byte, System.Single>> ShoeColorWeightedList |
SkinColorWeightedList# | public | public System.Collections.Generic.List<System.ValueTuple<System.Byte, System.Single>> SkinColorWeightedList |
TunicColorWeightedList# | public | public System.Collections.Generic.List<System.ValueTuple<System.Byte, System.Single>> TunicColorWeightedList |
TunicTypeWeightedList# | public | public System.Collections.Generic.List<System.ValueTuple<System.Byte, System.Single>> TunicTypeWeightedList |
Methods
GenerateRandomCitizen
#
public CandideServer.Models.Citizen.WildCitizenInstanceModel GenerateRandomCitizen(CandideServer.Helpers.CitizenTier citizenTier, System.Guid citizenId, System.Guid entityId)
Method metadata
- Visibilitypublic
- Return type
CandideServer.Models.Citizen.WildCitizenInstanceModel - StaticTrue
- VirtualFalse
- Hash
F7512515C992779EEA33D25B7014C30CBC76742DA88ABA821CEE54B4B810DD8A - Body hash
E0766DDCA4C6003162FE9F3E398DEF97B94D9B6AFBD6C8E70AFA5D07A5C6A031 - IL size1196
Referenced calls
CandideServer.Models.Citizen.WildCitizenInstanceModel::.ctor()CandideServer.Helpers.RandomCitizenGenerator::GenerateRandomCitizenAppearance(System.Guid)System.Collections.Generic.List<System.String>::.ctor()System.Collections.Generic.Dictionary<System.String, CandideServer.Models.Citizen.JobProgress>::.ctor()CandideServer.ServerManagers.CitizenNameServerManager::GetRandomName(System.String)CandideServer.Database.CitizenDataBase::GetCitizenOrMissing(System.String)System.Random::Next(System.Int32, System.Int32)CandideServer.Helpers.RandomCitizenGenerator::GetStatsBaseVariance(System.Int32, System.Int32)Shared.Models.Stats.CitizenStats::SetBaseStats(System.Collections.Generic.Dictionary<System.String, System.Single>, System.Collections.Generic.IEnumerable<System.ValueTuple<System.String, System.Single>>)System.Collections.Generic.HashSet<System.String>::get_Count()System.Linq.Enumerable::ElementAt(System.Collections.Generic.IEnumerable<!!0>, System.Int32)CandideServer.Models.Citizen.JobProgress::.ctor()System.Collections.Generic.Dictionary<System.String, CandideServer.Models.Citizen.JobProgress>::Add(!0, !1)System.ArgumentOutOfRangeException::.ctor(System.String, System.Object, System.String)System.Collections.Generic.List<System.String>::Add(!0)Shared.Data.CitizenAuraDatabase::GetAuraOrNull(System.String)System.Collections.Generic.List<System.String>::Clear()System.Collections.Generic.Dictionary<System.String, Shared.Models.Stats.StatModificationData>::get_Keys()Dictionary.KeyCollection<System.String, Shared.Models.Stats.StatModificationData>::GetEnumerator()Dictionary.KeyCollection.Enumerator<System.String, Shared.Models.Stats.StatModificationData>::get_Current()System.Collections.Generic.Dictionary<System.String, Shared.Models.Stats.StatModificationData>::ContainsKey(!0)Dictionary.KeyCollection.Enumerator<System.String, Shared.Models.Stats.StatModificationData>::MoveNext()System.IDisposable::Dispose()System.Collections.Generic.IReadOnlyCollection<System.String>::get_Count()System.Collections.Generic.IReadOnlyList<System.String>::get_Item(System.Int32)
String literals
malefemalecitizen:genericcitizen:blacksmithjob:blacksmithArtisancitizen:leatherworkerjob:leatherworkercitizen:merchantjob:merchantcitizen:lumberjackjob:lumberjackcitizenTier
GenerateRandomCitizenAppearance
#
public Shared.Models.Citizens.CitizenAppearance GenerateRandomCitizenAppearance(System.Guid citizenId)
Method metadata
- Visibilitypublic
- Return type
Shared.Models.Citizens.CitizenAppearance - StaticTrue
- VirtualFalse
- Hash
B7AB0953B6AD99D24C2D656A52B5C8CBAB361C98AA691562D492C67A6C0CEDFB - Body hash
1937C6970FD5C1320B250DE9ADC02C2868971729877406BAA3B67F45F2B72CC3 - IL size244
Referenced calls
System.Object::GetHashCode()System.Random::.ctor(System.Int32)CandideCreator.Shared.Helpers.RandomHelper::NextBool(System.Random)CandideCreator.Shared.Helpers.RandomHelper::RollWeighted(System.Collections.Generic.List<System.ValueTuple<!!0, System.Single>>, System.Random)
Called by
GetStatsBaseVariance
#
public System.ValueTuple<System.String, System.Single>[] GetStatsBaseVariance(System.Int32 pointsDistribution, System.Int32 additionalFoodCost)
Method metadata
- Visibilitypublic
- Return type
System.ValueTuple<System.String, System.Single>[] - StaticTrue
- VirtualFalse
- Hash
82D01A32ACE4D2049634116277BE69613E2E266541D8B6CA349A78E1D7029825 - Body hash
35F477842FD1BF1616B637D78724247EB92D901345274FCB0387A43E8BF734BE - IL size135
Referenced calls
System.Math::Max(System.Int32, System.Int32)CandideServer.Helpers.RandomCitizenGenerator::<GetStatsBaseVariance>g__GetPoints|6_0(RandomCitizenGenerator.<>c__DisplayClass6_0&)System.ValueTuple<System.String, System.Single>::.ctor(!0, !1)
Called by
String literals
Citizen_EfficiencyCitizen_ExpertiseCitizen_ExperienceGainCitizen_FoodCost