Adds style cop (#109)
This commit is contained in:
parent
3e715bcb60
commit
556a17aba8
1725 changed files with 33831 additions and 38046 deletions
|
|
@ -1,36 +1,32 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Server.Engines.Events
|
||||
{
|
||||
public class BroadcastEvent : IEvent
|
||||
{
|
||||
private int _hue = 0;
|
||||
private string _text = "";
|
||||
public static void Initialize()
|
||||
{
|
||||
/*
|
||||
EventScheduler.Instance.ScheduleEvent(new BroadcastEvent(22, "Test Message Please Ignore 2min"), 0, 0, TimeSpan.FromMinutes(2.0));
|
||||
EventScheduler.Instance.ScheduleEvent(new BroadcastEvent(33, "Test Message Please Ignore 3min"), 0, 0, TimeSpan.FromMinutes(3.0));
|
||||
EventScheduler.Instance.ScheduleEvent(new BroadcastEvent(44, "Test Message Please Ignore 4min"), 0, 0, TimeSpan.FromMinutes(4.0));
|
||||
*/
|
||||
}
|
||||
|
||||
public BroadcastEvent(int hue, string text)
|
||||
{
|
||||
_hue = hue;
|
||||
_text = text;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"Broadcast: {_text}";
|
||||
}
|
||||
|
||||
public void OnEventScheduled()
|
||||
{
|
||||
World.Broadcast(_hue, true, _text);
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace Server.Engines.Events
|
||||
{
|
||||
public class BroadcastEvent : IEvent
|
||||
{
|
||||
private readonly int _hue = 0;
|
||||
private readonly string _text = "";
|
||||
public static void Initialize()
|
||||
{
|
||||
/*
|
||||
EventScheduler.Instance.ScheduleEvent(new BroadcastEvent(22, "Test Message Please Ignore 2min"), 0, 0, TimeSpan.FromMinutes(2.0));
|
||||
EventScheduler.Instance.ScheduleEvent(new BroadcastEvent(33, "Test Message Please Ignore 3min"), 0, 0, TimeSpan.FromMinutes(3.0));
|
||||
EventScheduler.Instance.ScheduleEvent(new BroadcastEvent(44, "Test Message Please Ignore 4min"), 0, 0, TimeSpan.FromMinutes(4.0));
|
||||
*/
|
||||
}
|
||||
|
||||
public BroadcastEvent(int hue, string text)
|
||||
{
|
||||
_hue = hue;
|
||||
_text = text;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"Broadcast: {_text}";
|
||||
}
|
||||
|
||||
public void OnEventScheduled()
|
||||
{
|
||||
World.Broadcast(_hue, true, _text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue