public override bool onTryGetId(int id__, APlayTest.Server.Client client__) { // Autogenerated log message for call APlay.Common.Logging.Logger.LogDesigned(2, "Client.onTryGetId called", "APlayTest.Server.Client"); /// TODO: add your code here return(false); }
/// <summary> /// a client disconnected /// </summary> /// <param name="client"> /// the representation of this client /// </param> public override void onClientDisconnect(APlayTest.Server.Client client) { // Autogenerated log message for call APlay.Common.Logging.Logger.LogDesigned(2, "APlayServer.onClientDisconnect called", "APlayTest.Server.APlayServer"); _clientIdLookup.Free(client.Id); }
/// <summary> /// a client connected /// </summary> /// <param name="client"> /// the representation of this client /// </param> public override void onClientConnect(APlayTest.Server.Client client) { // Autogenerated log message for call APlay.Common.Logging.Logger.LogDesigned(2, "APlayServer.onClientConnect called", "APlayTest.Server.APlayServer"); client.TryGetIdEventHandler += ClientOnTryGetIdEventHandler; client.Id = IdGenerator.GetNextId(); _clientIdLookup.Lock(client.Id); var projectManager = _projectManagerFactory.CreateProjectManager(); projectManager.DataClient = client; client.ProjectManager = projectManager; }
private bool ClientOnTryGetIdEventHandler(int desiredId, APlayTest.Server.Client client) { if (client.Id == desiredId) { return(true); } if (!_clientIdLookup.IsUsed(desiredId)) { _clientIdLookup.Free(client.Id); APlay.Common.Logging.Logger.LogDesigned(2, "Client changed id: " + client.Id + " -> " + desiredId, "APlayTest.Server.APlayServer"); client.Id = desiredId; } return(true); }
public override void onRemoveConnector(APlayTest.Server.Connector connection__, APlayTest.Server.Client client__) { // Autogenerated log message for call APlay.Common.Logging.Logger.LogDesigned(2, "Sheet.onRemoveConnector called", "APlayTest.Server.Sheet"); /// TODO: add your code here }
public override void onAdd(APlayTest.Server.BlockSymbol blockSymbol__, APlayTest.Server.Client client__) { // Autogenerated log message for call APlay.Common.Logging.Logger.LogDesigned(2, "Sheet.onAdd called", "APlayTest.Server.Sheet"); /// TODO: add your code here }
public override void onSetName(String name__, APlayTest.Server.Client client__) { // Autogenerated log message for call APlay.Common.Logging.Logger.LogDesigned(2, "Sheet.onSetName called", "APlayTest.Server.Sheet"); /// TODO: add your code here }
public override void onCreateProject(APlayTest.Server.Client sender__, String name__) { // Autogenerated log message for call APlay.Common.Logging.Logger.LogDesigned(2, "ProjectManager.onCreateProject called", "APlayTest.Server.ProjectManager"); /// TODO: add your code here }
public override void onSetColor(uint Color__, APlayTest.Server.Client client__) { // Autogenerated log message for call APlay.Common.Logging.Logger.LogDesigned(2, "Connection.onSetColor called", "APlayTest.Server.Connection"); /// TODO: add your code here }
public override void onSetPosition(APlayTest.Server.AplayPoint position__, APlayTest.Server.Client client__) { // Autogenerated log message for call APlay.Common.Logging.Logger.LogDesigned(2, "Connector.onSetPosition called", "APlayTest.Server.Connector"); /// TODO: add your code here }
/// <summary> /// a client disconnected /// </summary> /// <param name="client"> /// the representation of this client /// </param> public override void onClientDisconnect(APlayTest.Server.Client client) { // Autogenerated log message for call APlay.Common.Logging.Logger.LogDesigned(2, "APlayServer.onClientDisconnect called", "APlayTest.Server.APlayServer"); /// TODO: add your code here }