Ignore:
Timestamp:
Jan 27, 2023, 7:28:00 PM (22 months ago)
Author:
alloc
Message:
  • Major refactoring
  • Using Utf8Json for (de)serialization
  • Moving APIs to REST
  • Removing dependencies from WebServer and MapRenderer to ServerFixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/CommandExtensions/src/ChatHelpers.cs

    r391 r402  
    1010                        }
    1111
    12                         _receiver.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1, _message, senderName + " (PM)", false, null));
     12                        _receiver.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1, _message,
     13                                $"{senderName} (PM)", false, null));
    1314                        string receiverName = _receiver.playerName;
    14                         SdtdConsole.Instance.Output (
    15                                 $"Message to player {(receiverName != null ? "\"" + receiverName + "\"" : "unknownName")} sent with sender \"{senderName}\"");
     15                        receiverName = receiverName != null ? $"\"{receiverName}\"" : "unknownName";
     16                        SdtdConsole.Instance.Output ($"Message to player {receiverName} sent with sender \"{senderName}\"");
    1617                }
    1718        }
Note: See TracChangeset for help on using the changeset viewer.