public void RegisterMinorExperience(MinorExperienceEventRecord record) { switch (record.type) { case MinorExperienceEventRecord.ExperienceType.Assist: _stat.Assists++; break; case MinorExperienceEventRecord.ExperienceType.MAXRepair: _stat.MAXRepairs++; break; case MinorExperienceEventRecord.ExperienceType.Resupply: _stat.Resupplies++; break; case MinorExperienceEventRecord.ExperienceType.Heal: _stat.Heals++; break; default: break; } Events.Add(record); }
public void Handle(MinorExperienceEventRecord record) { PlayerStats person; if (record.character.Id != null && Players.TryGetValue(record.character.Id, out person)) { lock (person) person.RegisterMinorExperience(record); } }