Fix NetworkManager, add more entity management, default command permission level to "Admin"
This commit is contained in:
14
Torch.Server/ViewModels/Entities/FloatingObjectViewModel.cs
Normal file
14
Torch.Server/ViewModels/Entities/FloatingObjectViewModel.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Sandbox.Game.Entities;
|
||||
using Torch.Server.ViewModels.Entities;
|
||||
|
||||
namespace Torch.Server.ViewModels
|
||||
{
|
||||
public class FloatingObjectViewModel : EntityViewModel
|
||||
{
|
||||
private MyFloatingObject Floating => (MyFloatingObject)Entity;
|
||||
|
||||
public override string Name => $"{base.Name} ({Floating.Amount})";
|
||||
|
||||
public FloatingObjectViewModel(MyFloatingObject floating, EntityTreeViewModel tree) : base(floating, tree) { }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user