Changeset 309 for binary-improvements/AllocsCommands
- Timestamp:
- Aug 9, 2017, 7:43:07 PM (7 years ago)
- Location:
- binary-improvements/AllocsCommands
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/AllocsCommands/AllocsCommands.csproj
r290 r309 39 39 <Private>False</Private> 40 40 </Reference> 41 <Reference Include="Assembly-CSharp-firstpass"> 42 <HintPath>..\..\..\RPGMod\7dtd-binaries\Assembly-CSharp-firstpass.dll</HintPath> 43 <Private>False</Private> 44 </Reference> 41 45 </ItemGroup> 42 46 <ItemGroup> -
binary-improvements/AllocsCommands/Commands/Reply.cs
r251 r309 35 35 Chat.SendMessage (receiver, _sender, message); 36 36 } else { 37 if (receiver != null) { 38 SdtdConsole.Instance.Output ("The sender of the PM you last received is currently not online."); 39 } else { 40 SdtdConsole.Instance.Output ("You have not received a PM so far."); 41 } 37 SdtdConsole.Instance.Output ("You have not received a PM so far or sender of last received PM is no longer online."); 42 38 } 43 39 } -
binary-improvements/AllocsCommands/ModInfo.xml
r306 r309 5 5 <Description value="Additional commands for server operation" /> 6 6 <Author value="Christian 'Alloc' Illy" /> 7 <Version value="1 3" />7 <Version value="14" /> 8 8 <Website value="http://7dtd.illy.bz" /> 9 9 </ModInfo> -
binary-improvements/AllocsCommands/PrivateMessageConnections.cs
r251 r309 1 1 using System; 2 2 using System.Collections.Generic; 3 using Steamworks; 3 4 4 5 namespace AllocsFixes.CustomCommands … … 6 7 public class PrivateMessageConnections 7 8 { 8 private static Dictionary<C lientInfo, ClientInfo> senderOfLastPM = new Dictionary<ClientInfo, ClientInfo> ();9 private static Dictionary<CSteamID, CSteamID> senderOfLastPM = new Dictionary<CSteamID, CSteamID> (); 9 10 10 11 public static void SetLastPMSender (ClientInfo _sender, ClientInfo _receiver) 11 12 { 12 if (senderOfLastPM.ContainsKey (_receiver)) 13 senderOfLastPM [_receiver] = _sender; 14 else 15 senderOfLastPM.Add (_receiver, _sender); 13 senderOfLastPM [_receiver.steamId] = _sender.steamId; 16 14 } 17 15 18 16 public static ClientInfo GetLastPMSenderForPlayer (ClientInfo _player) 19 17 { 20 if (senderOfLastPM.ContainsKey (_player)) 21 return senderOfLastPM [_player]; 18 if (senderOfLastPM.ContainsKey (_player.steamId)) { 19 CSteamID recSteamId = senderOfLastPM [_player.steamId]; 20 ClientInfo recInfo = ConnectionManager.Instance.GetClientInfoForSteamId (recSteamId); 21 return recInfo; 22 } 22 23 return null; 23 24 }
Note:
See TracChangeset
for help on using the changeset viewer.