Ignore:
Timestamp:
Sep 4, 2018, 1:00:48 PM (6 years ago)
Author:
alloc
Message:

Code style cleanup (mostly whitespace changes, enforcing braces, using cleanup)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/AllocsCommands/PrivateMessageConnections.cs

    r324 r325  
    1 using System;
    21using System.Collections.Generic;
    32using Steamworks;
    43
    5 namespace AllocsFixes.CustomCommands
    6 {
    7         public class PrivateMessageConnections
    8         {
    9                 private static Dictionary<CSteamID, CSteamID> senderOfLastPM = new Dictionary<CSteamID, CSteamID> ();
     4namespace AllocsFixes.CustomCommands {
     5        public class PrivateMessageConnections {
     6                private static readonly Dictionary<CSteamID, CSteamID> senderOfLastPM = new Dictionary<CSteamID, CSteamID> ();
    107
    11                 public static void SetLastPMSender (ClientInfo _sender, ClientInfo _receiver)
    12                 {
     8                public static void SetLastPMSender (ClientInfo _sender, ClientInfo _receiver) {
    139                        senderOfLastPM [_receiver.steamId] = _sender.steamId;
    1410                }
    1511
    16                 public static ClientInfo GetLastPMSenderForPlayer (ClientInfo _player)
    17                 {
     12                public static ClientInfo GetLastPMSenderForPlayer (ClientInfo _player) {
    1813                        if (senderOfLastPM.ContainsKey (_player.steamId)) {
    1914                                CSteamID recSteamId = senderOfLastPM [_player.steamId];
     
    2116                                return recInfo;
    2217                        }
     18
    2319                        return null;
    2420                }
Note: See TracChangeset for help on using the changeset viewer.