المشاركات 69 |
+التقييم 0.02 |
تاريخ التسجيل Apr 2013 |
الاقامة القاهرة |
نظام التشغيل |
رقم العضوية 2627 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Conquer_Online_Server.Game
{
public static class Weather
{
public static DateTime NextChange = new DateTime();
public static Network.GamePackets.Weather CurrentWeatherBase = new Conquer_Online_Server.Network.GamePackets.Weather( true);
public static uint Intensity
{
get
{
return CurrentWeatherBase.Intensity;
}
set
{
CurrentWeatherBase.Intensity = value;
}
}
public static uint Appearence
{
get
{
return CurrentWeatherBase.Appearence;
}
set
{
CurrentWeatherBase.Appearence = value;
}
}
public static uint Direction
{
get
{
return CurrentWeatherBase.Direction;
}
set
{
CurrentWeatherBase.Direction = value;
}
}
public static uint CurrentWeather
{
get
{
return CurrentWeatherBase.WeatherType;
}
set
{
CurrentWeatherBase.WeatherType = value;
foreach (Client.GameState client in Program.Values)
{
CurrentWeatherBase.Send(client);
}
}
}
}
}
private void ServerFunctions(int time)
{
#region New weather
Conquer_Online_Server.Network.GamePackets.Weather weather;
#region Rain System
if (DateTime.Now.Minute == 10 && DateTime.Now.Second == 0 || DateTime.Now.Minute == 00 && DateTime.Now.Second == 00)
{
foreach (GameState state in Kernel.GamePool.Values)
{
Program.WeatherType = Conquer_Online_Server.Network.GamePackets.Weather. Rain;
weather = new Conquer_Online_Server.Network.GamePackets.Weather( true)
{
WeatherType = (uint)Program.WeatherType,
Intensity = 255,
Appearence = 255,
Direction = 255
};
state.Send(weather);
}
}
#endregion Rain System
#region Snow System
if (DateTime.Now.Minute == 20 && DateTime.Now.Second == 0 || DateTime.Now.Minute == 00 && DateTime.Now.Second == 00)
{
foreach (GameState state in Kernel.GamePool.Values)
{
Program.WeatherType = Conquer_Online_Server.Network.GamePackets.Weather. Snow;
weather = new Conquer_Online_Server.Network.GamePackets.Weather( true)
{
WeatherType = (uint)Program.WeatherType,
Intensity = 255,
Appearence = 255,
Direction = 255
};
state.Send(weather);
}
}
#endregion Snow System
#region AutumnLeaves
if (DateTime.Now.Minute == 30 && DateTime.Now.Second == 0 || DateTime.Now.Minute == 00 && DateTime.Now.Second == 00)
{
foreach (GameState state in Kernel.GamePool.Values)
{
Program.WeatherType = Conquer_Online_Server.Network.GamePackets.Weather. AutumnLeaves;
weather = new Conquer_Online_Server.Network.GamePackets.Weather( true)
{
WeatherType = (uint)Program.WeatherType,
Intensity = 255,
Appearence = 255,
Direction = 255
};
state.Send(weather);
}
}
#endregion AutumnLeaves
#region CherryBlossomPetals
if (DateTime.Now.Minute == 40 && DateTime.Now.Second == 0 || DateTime.Now.Minute == 00 && DateTime.Now.Second == 00)
{
foreach (GameState state in Kernel.GamePool.Values)
{
Program.WeatherType = Conquer_Online_Server.Network.GamePackets.Weather. CherryBlossomPetals;
weather = new Conquer_Online_Server.Network.GamePackets.Weather( true)
{
WeatherType = (uint)Program.WeatherType,
Intensity = 255,
Appearence = 255,
Direction = 255
};
state.Send(weather);
}
}
#endregion CherryBlossomPetals
#region BlowingCotten
if (DateTime.Now.Minute == 60 && DateTime.Now.Second == 0 || DateTime.Now.Minute == 00 && DateTime.Now.Second == 00)
{
foreach (GameState state in Kernel.GamePool.Values)
{
Program.WeatherType = Conquer_Online_Server.Network.GamePackets.Weather. BlowingCotten;
weather = new Conquer_Online_Server.Network.GamePackets.Weather( true)
{
WeatherType = (uint)Program.WeatherType,
Intensity = 255,
Appearence = 255,
Direction = 255
};
state.Send(weather);
}
}
#endregion CherryBlossomPetals
#endregion New weather
Weather|System ;hlg lkn ,fs weather|system
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
أدوات الموضوع | |
انواع عرض الموضوع | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
RANCY♠SkillSouls♣Ai System♣Forging System♣V5819♣JiangHu♣Booth System♠And More | XiRO-ONLINE | قسم إعلانات السيرفرات الشخصية | 0 | 12-20-2013 03:26 PM |
سيرفر Hell-Co يلا خش و العب 100 كبس دروب الاتشى كامل + بوكر كبس كامل 5720 | joker | قسم إعلانات السيرفرات الشخصية | 0 | 06-24-2013 02:04 PM |
سيرفر فانتزى | اساسين كامل | بوكر كامل | شى سيستم كامل | دروب 500 | كونكر اونلاين 100% | ChuMChuM | قسم إعلانات السيرفرات الشخصية | 1 | 04-26-2013 12:47 PM |
|حصريا|Ripper-Co | مونكـ كامل | نينجا كامل |Pure Skill |MonsterDrop 500 Cps|VPS| | Shicoo | قسم إعلانات السيرفرات الشخصية | 0 | 06-02-2012 01:52 AM |
سيرفر 5375 | مونك كامل | نينجا كامل | ارينا | حصان كامل||300 سى بى اس | Shicoo | قسم إعلانات السيرفرات الشخصية | 0 | 06-02-2012 01:33 AM |