Beispiel #1
0
    public InitialGenomeBodyPartData(InitialGenomeBodyPartInfo template)
    {
        length = RandomStatics.RandomRange(template.length.initialRange);

        frontWidth          = RandomStatics.RandomRange(template.frontWidth.initialRange);
        frontHeight         = RandomStatics.RandomRange(template.frontHeight.initialRange);
        frontVerticalOffset = RandomStatics.RandomRange(template.frontVerticalOffset.initialRange);
        backWidth           = RandomStatics.RandomRange(template.backWidth.initialRange);
        backHeight          = RandomStatics.RandomRange(template.backHeight.initialRange);
        backVerticalOffset  = RandomStatics.RandomRange(template.backVerticalOffset.initialRange);
        transitionSize      = RandomStatics.RandomRange(template.transitionSize.initialRange);
    }
Beispiel #2
0
    /// Initialize from ranges stored in editor-defined template
    public InitialGenomeData(InitialGenomeInfo template)
    {
        creatureBaseLength  = RandomStatics.RandomRange(template.creatureBaseLength.initialRange);
        creatureAspectRatio = RandomStatics.RandomRange(template.creatureAspectRatio.initialRange);

        creatureFrontTaperSize = RandomStatics.RandomRange(template.creatureFrontTaperSize.initialRange);
        creatureBackTaperSize  = RandomStatics.RandomRange(template.creatureBackTaperSize.initialRange);
        mouthFeedFrequency     = RandomStatics.RandomRange(template.mouthFeedFrequency.initialRange);
        mouthAttackAmplitude   = RandomStatics.RandomRange(template.mouthAttackAmplitude.initialRange);

        mouth = template.mouth.GetRandomizedData();
        head  = template.head.GetRandomizedData();
        body  = template.body.GetRandomizedData();
        tail  = template.tail.GetRandomizedData();

        eyeCount             = template.eyeCount;
        eyeSpread            = RandomStatics.RandomRange(template.eyeSpread.initialRange);
        eyeLocationAmplitude = RandomStatics.RandomRange(template.eyeLocationAmplitude.initialRange);
        eyeLocationFrequency = RandomStatics.RandomRange(template.eyeLocationFrequency.initialRange);
        eyeLocationOffset    = RandomStatics.RandomRange(template.eyeLocationOffset.initialRange);
        socketRadius         = RandomStatics.RandomRange(template.socketRadius.initialRange);
        socketHeight         = RandomStatics.RandomRange(template.socketHeight.initialRange);
        socketBulge          = RandomStatics.RandomRange(template.socketBulge.initialRange);
        eyeballRadius        = RandomStatics.RandomRange(template.eyeballRadius.initialRange);
        eyeBulge             = RandomStatics.RandomRange(template.eyeBulge.initialRange);
        irisWidthPercent     = RandomStatics.RandomRange(template.irisWidthPercent.initialRange);
        pupilWidthPercent    = RandomStatics.RandomRange(template.pupilWidthPercent.initialRange);
        pupilHeightPercent   = RandomStatics.RandomRange(template.pupilHeightPercent.initialRange);
        eyeballHue           = template.eyeballHue;
        irisHue = template.irisHue.GetHue().GetValue();

        dorsalFinStartY     = RandomStatics.RandomRange(template.dorsalFinStartY.initialRange);
        dorsalFinEndY       = RandomStatics.RandomRange(template.dorsalFinEndY.initialRange);
        dorsalFinSlant      = RandomStatics.RandomRange(template.dorsalFinSlant.initialRange);
        dorsalFinBaseHeight = RandomStatics.RandomRange(template.dorsalFinBaseHeight.initialRange);

        tailFinSpreadAngle = RandomStatics.RandomRange(template.tailFinSpreadAngle.initialRange);
        tailFinBaseLength  = RandomStatics.RandomRange(template.tailFinBaseLength.initialRange);
        tailFinFrequencies = template.tailFinFrequencies;
        tailFinAmplitudes  = template.tailFinAmplitudes;
        tailFinOffsets     = template.tailFinOffsets;

        attackSpecialization  = RandomStatics.RandomRange(template.attackSpecialization);
        defenseSpecialization = RandomStatics.RandomRange(template.defenseSpecialization);
        speedSpecialization   = RandomStatics.RandomRange(template.speedSpecialization);
        utilitySpecialization = RandomStatics.RandomRange(template.utilitySpecialization);

        plantDietSpecialization = RandomStatics.RandomRange(template.plantDietSpecialization);
        decayDietSpecialization = RandomStatics.RandomRange(template.decayDietSpecialization);
        meatDietSpecialization  = RandomStatics.RandomRange(template.meatDietSpecialization);
    }
Beispiel #3
0
 public HueData(HueInfo template)
 {
     red   = RandomStatics.RandomRange(template.red);
     green = RandomStatics.RandomRange(template.green);
     blue  = RandomStatics.RandomRange(template.blue);
 }