SetWeather: Difference between revisions
No edit summary |
No edit summary |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
Sets the weather. | Sets the weather. | ||
{{CSharpContainer| | |||
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}World.SetWeather(string weather);}} | |||
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}World.SetWeather(Weather weather);}} | |||
{{Parameters}} | |||
*'''weather:''' parameter input should be in '''string''' or '''Weather''' type | *'''weather:''' parameter input should be in '''string''' or '''Weather''' type | ||
{{Example}} | |||
{{#tag:syntaxhighlight| | |||
{{ | |||
[Command("clrweather", Description = "Clears the weather")] | [Command("clrweather", Description = "Clears the weather")] | ||
public void Clear_Weather(Client player) | public void Clear_Weather(Client player) | ||
{ | { | ||
{{Template:CSharp_Serverside_namespace}}World.SetWeather(Weather.CLEAR); | |||
} | } | ||
|lang=csharp}} | |||
}} | }} | ||
[[Category:Serverside API]] | [[Category:Serverside API]] | ||
Latest revision as of 21:00, 27 November 2019
Sets the weather.
C# Syntax
void NAPI.World.SetWeather(string weather);
void NAPI.World.SetWeather(Weather weather);
Parameters
- weather: parameter input should be in string or Weather type
Example
[Command("clrweather", Description = "Clears the weather")]
public void Clear_Weather(Client player)
{
NAPI.World.SetWeather(Weather.CLEAR);
}