using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ShiftOS.Objects; namespace ShiftOS.Engine { [Obsolete("Old code.")] public interface Server { /// /// Occurs when someone sends a message to the server. /// /// The message from the client. void MessageReceived(dynamic msg); } [Obsolete("Old code.")] [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] public class ServerAttribute : Attribute { public ServerAttribute(string name, int port) { Name = name; Port = port; } /// /// Gets the name of the server. /// public string Name { get; } /// /// Gets the port of the server. /// public int Port { get; } } }