add Name to LogName

This commit is contained in:
Mister_Nebula 2022-01-13 12:13:31 +00:00
parent f2c7cacd90
commit f81b70f6e5

View File

@ -9,7 +9,7 @@ namespace QSB.WorldSync
public int ObjectId { get; init; }
public T AttachedObject { get; init; }
public string Name => AttachedObject == null ? "<NullObject!>" : AttachedObject.name;
public string LogName => $"{QSBPlayerManager.LocalPlayerId}.{ObjectId}:{GetType().Name}";
public string LogName => $"{QSBPlayerManager.LocalPlayerId}.{ObjectId}:{GetType().Name} ({Name})";
public virtual void Init() { }
public virtual void OnRemoval() { }