コード例 #1
0
        public override void BeginCareerTone(InteractionInstance interactionInstance)
        {
            try
            {
                foreach (SkillRate skill in mSkills)
                {
                    Skill element = Career.OwnerDescription.SkillManager.AddElement(skill.mSkill);
                    if (element != null)
                    {
                        Career.OwnerDescription.SkillManager.StartSkillGain(skill.mSkill, skill.mRate);
                    }
                }

                foreach (MotiveRate motive in mMotives)
                {
                    motive.mStored = interactionInstance.AddMotiveDelta(motive.mKind, motive.mRate);
                }

                foreach (MetricRate rate in mMetrics)
                {
                    rate.mStartTime = SimClock.ElapsedTime(TimeUnit.Hours);
                }

                Career.PerformanceBonusPerHour += mPerformanceModifier;
            }
            catch (Exception e)
            {
                Common.Exception(Career.OwnerDescription, e);
            }
        }