Example #1
0
    public void Initialize(BodyPart.PartInfo info)
    {
        LoadInjuryStrings();
        Color color = DeterminePartColor(info.severityLevel);

        ChangeColor(color);
        injuries = info.injuryLog; //should hold a ref so list will update itself
    }
Example #2
0
    public BodyPart.PartInfo[] GetBodyParts()
    {
        BodyPart.PartInfo[] info = new BodyPart.PartInfo[bodyParts.Count];

        for (int i = 0; i < bodyParts.Count; i++)
        {
            info[i] = bodyParts[i].PackagePartInfo();
        }

        return(info);
    }