Exemple #1
0
    public void InitMe(DeathLocation dl)
    {
        nameText.GetComponent <TextMesh> ().text = dl.name + "\n" + dl.message;
        if (dl.team == 0)          //blue
        {
            bonesSR.color = Color.cyan;
            fireSR.color  = Color.cyan;
        }
        else if (dl.team == 1)
        {
            bonesSR.color = Color.red;
            fireSR.color  = Color.red;
        }

        hp.setDL(dl);
    }
Exemple #2
0
        /// <inheritdoc/>
        public string ToDelimitedString()
        {
            CultureInfo culture = CultureInfo.CurrentCulture;

            return(string.Format(
                       culture,
                       StringHelper.StringFormatSequence(0, 10, Configuration.FieldSeparator),
                       Id,
                       DeathCauseCode != null ? string.Join(Configuration.FieldRepeatSeparator, DeathCauseCode.Select(x => x.ToDelimitedString())) : null,
                       DeathLocation?.ToDelimitedString(),
                       DeathCertifiedIndicator,
                       DeathCertificateSignedDateTime.HasValue ? DeathCertificateSignedDateTime.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null,
                       DeathCertifiedBy?.ToDelimitedString(),
                       AutopsyIndicator,
                       AutopsyStartAndEndDateTime?.ToDelimitedString(),
                       AutopsyPerformedBy?.ToDelimitedString(),
                       CoronerIndicator
                       ).TrimEnd(Configuration.FieldSeparator.ToCharArray()));
        }
Exemple #3
0
 public void setDL(DeathLocation dl)
 {
     this.dl = dl;
 }