// --- Methods public static void LoadPrisonSentenceForPlayer(Player player) { Prison sentence = PrisonRepository.GetPrisonSentenceByCharacterID(player.Id); if (sentence == null) { return; } activeSentences.Add(player, sentence); }
public async static void EndSentence(Prison sentence, Player player) { if (!sentence.IsPrison) { CellManager.StartCellExitSequenceForPlayer(player); } else { //StartPrisonExitSequenceForPlayer(player); } await PrisonRepository.RemoveSentence(sentence); }