예제 #1
0
        public void UseType(int type, int color)
        {
            Color?convertedColor = color >= 0 ? (Color)color : (Color?)null;

            if (!api.TryUse((ModelId)type, convertedColor))
            {
                api.ClientPrint("No item found.");
            }
        }
예제 #2
0
 public void Enable()
 {
     enabled = true;
     client.Send(CreateFullLightLevelPacket());
     legacy.ClientPrint("Light filtering turned on");
 }
예제 #3
0
 public void Enable()
 {
     enabled = true;
     client.Send(CreateNeutralWeatherPacket());
     legacy.ClientPrint("Weather filtering turned on");
 }