Exemplo n.º 1
0
 private static void ProcessCreateRegionRequest(ref BinaryReader reader, int playerNumber)
 {
     if (Network.Players[playerNumber].Group.IsAdmin)
     {
         Region region = Region.GetRegionFromBinaryReader(ref reader);
         DatabaseController.AddRegion(ref region);
         Network.Regions.Add(region);
         SendRegionListToAllPlayers();
         Network.SendTextToAllPlayers(@"'" + region.Name + "' region created by " + Network.Players[playerNumber].ServerInstance.Name);
     }
 }
Exemplo n.º 2
0
 private static void ProcessCreateRegionRequest(ref BinaryReader reader, int playerNumber)
 {
     if (Network.Players[playerNumber].Group.IsAdmin)
     {
         Region region = Region.GetRegionFromBinaryReader(ref reader);
         DatabaseController.AddRegion(ref region);
         Network.Regions.Add(region);
         SendRegionListToAllPlayers();
         Network.SendTextToAllPlayers(string.Format(HEROsMod.HeroText("RegionCreatedBy"), region.Name, Network.Players[playerNumber].ServerInstance.Name));
     }
 }