using System;
using Woodpecker.Specialized.Text;
namespace Woodpecker.Game
{
public class globalReactor : Reactor
{
///
/// 9 - "@I"
///
public void GETAVAILABLESETS()
{
Session.refreshFigureParts();
}
///
/// 42 - "@j"
///
public void APPROVENAME()
{
Response.Initialize(36); // "@d"
bool isPet = (Request.Content[Request.Content.Length - 1] == 'I');
int errorID = ObjectTree.Game.Users.getNameCheckError(isPet, Request.getParameter(0));
Response.appendWired(errorID);
sendResponse();
}
///
/// 49 - "@q"
///
public void GDATE()
{
Response.Initialize(163); // "Bc"
Response.Append(DateTime.Today.ToString("dd-MM-yyyy"));
sendResponse();
}
///
/// 196 - "CD"
///
public void PONG()
{
Session.pongReceived = true;
}
///
/// 197 - "CE"
///
public void APPROVEEMAIL()
{
Response.Initialize(271); // "DO"
sendResponse();
}
///
/// 203 - "CK"
///
public void APPROVE_PASSWORD()
{
Response.Initialize(282); // "DZ"
string Username = Request.getParameter(0);
string Password = Request.getParameter(1);
bool OK = stringFunctions.passwordIsValid(Username, Password);
Response.appendWired(!OK);
sendResponse();
}
}
}