Esempio n. 1
0
 private static void SetNextMapHash()
 {
     if (!firstRun)
     {
         if (RANDOMIZE)
         {
             pluginInfo.LogMessage(pluginInfo.mapList.Count.ToString(), ConsoleColor.Red);
             Random ran     = new Random();
             string choice  = pluginInfo.mapList.ElementAt(ran.Next(0, pluginInfo.mapList.Count - 1)).Key;
             string mapName = pluginInfo.mapList[choice];
             pluginInfo.SendServerAnnouncement("Map Will Change in " + INTERVAL.ToString() + " minutes!\nNext Map in Rotation: " + mapName, 15, "da32e3");
             nextMapHash = choice;
         }
         else
         {
             nextMapHash = pluginInfo.mapList.ElementAt(currentMapIndex + 1).Key;
             currentMapIndex++;
         }
     }
     else
     {
         firstRun = false;
     }
 }
Esempio n. 2
0
 protected override void ApplyProperty()
 {
     FRAME?.ApplyTo(RenderedObject, Property.FRAME);
     INTERVAL?.ApplyTo(RenderedObject, Property.INTERVAL);
     BLEND?.ApplyTo(RenderedObject, Property.BLEND);
 }