24 lines
449 B
C#
24 lines
449 B
C#
using Sandbox;
|
|
using System;
|
|
namespace VeloX;
|
|
|
|
public abstract partial class VeloXBase
|
|
{
|
|
[Property, Feature( "Input" )] internal InputResolver Input { get; set; } = new();
|
|
|
|
private Guid _guid;
|
|
|
|
[Sync( SyncFlags.FromHost )]
|
|
public Guid ConnectionID
|
|
{
|
|
get => _guid;
|
|
set
|
|
{
|
|
_guid = value;
|
|
Input.Driver = Connection.Find( _guid );
|
|
}
|
|
}
|
|
[Property, Feature( "Input" )] public bool IsDriver => ConnectionID == Connection.Local.Id;
|
|
|
|
}
|