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/7dtd-server-fixes/src/ModApi.cs

    r391 r402  
    3030                        }
    3131
    32                         Log.Out ("Player connected" +
    33                                  ", entityid=" + _cInfo.entityId +
    34                                  ", name=" + _cInfo.playerName +
    35                                  ", pltfmid=" + (_cInfo.PlatformId?.CombinedString ?? "<unknown>") +
    36                                  ", crossid=" + (_cInfo.CrossplatformId?.CombinedString ?? "<unknown/none>") +
    37                                  ", steamOwner=" + (owner ?? "<unknown/none>") +
    38                                  ", ip=" + _cInfo.ip
     32                        Log.Out (
     33                                $"Player connected, entityid={_cInfo.entityId}, name={_cInfo.playerName}, pltfmid={_cInfo.PlatformId?.CombinedString ?? "<unknown>"}, crossid={_cInfo.CrossplatformId?.CombinedString ?? "<unknown/none>"}, steamOwner={owner ?? "<unknown/none>"}, ip={_cInfo.ip}"
    3934                        );
    4035                }
     
    6661
    6762                        if (_cInfo != null) {
    68                                 Log.Out ("Sent chat hook reply to {0}", _cInfo.InternalId);
     63                                Log.Out ($"Sent chat hook reply to {_cInfo.InternalId}");
    6964                                _cInfo.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1, testChatAnswer, "", false, null));
    7065                        } else {
    71                                 Log.Error ("ChatHookExample: Argument _cInfo null on message: {0}", _msg);
     66                                Log.Error ($"ChatHookExample: Argument _cInfo null on message: {_msg}");
    7267                        }
    7368
Note: See TracChangeset for help on using the changeset viewer.