Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com> Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
16 lines
499 B
C#
16 lines
499 B
C#
using Content.Shared.Administration;
|
|
|
|
namespace Content.Client.Administration.Managers;
|
|
|
|
public sealed class NetworkResourceManager : SharedNetworkResourceManager
|
|
{
|
|
/// <summary>
|
|
/// Callback for when the server sends a new resource.
|
|
/// </summary>
|
|
/// <param name="msg">The network message containing the data.</param>
|
|
protected override void ResourceUploadMsg(NetworkResourceUploadMessage msg)
|
|
{
|
|
ContentRoot.AddOrUpdateFile(msg.RelativePath, msg.Data);
|
|
}
|
|
}
|