Guest User

Untitled

a guest
Apr 25th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.12 KB | None | 0 0
  1. namespace RemoteControl
  2. {
  3.     [APIVersion(1, 9)]
  4.     public class RemoteControlPlugin : TerrariaPlugin
  5.     {
  6.         private const string DEFAULT_AUTHOR = "Nano / xrythx";
  7.         private const string DEFAULT_DESCRIPTION = "Remote management interface for TerraXSA";
  8.         private const string DEFAULT_NAME = "RemoteControlGateway";
  9.  
  10.         public override string Author { get { return DEFAULT_AUTHOR; } }
  11.         public override string Description { get { return DEFAULT_DESCRIPTION; } }
  12.         public override string Name { get { return DEFAULT_NAME; } }
  13.         public override Version Version { get { return Assembly.GetExecutingAssembly().GetName().Version; } }
  14.        
  15.         public RemoteControlPlugin(Main game)
  16.             : base(game)
  17.         {
  18.             Order = 1;
  19.            
  20.         }
  21.  
  22.         public override void Initialize()
  23.         {
  24.             Log.Info("[RC] Initializing");
  25.             RemoteListener.StartListener();
  26.         }
  27.  
  28.         protected override void Dispose(bool disposing)
  29.         {
  30.             base.Dispose(disposing);
  31.             Console.ReadKey();
  32.         }
  33.     }
  34. }
Add Comment
Please, Sign In to add comment