Let stuff be broken!

This commit is contained in:
Adam Frisby
2007-05-16 21:10:45 +00:00
parent 3435e0cb3a
commit dc2acaa8a8
12 changed files with 349 additions and 59 deletions

View File

@@ -0,0 +1,68 @@
using System;
using System.Collections.Generic;
using System.Text;
using OpenGrid.Framework.Data;
using libsecondlife;
namespace OpenGrid.Framework.Data.MySQL
{
class MySQLUserData : IUserData
{
public MySQLManager manager;
public void Initialise()
{
manager = new MySQLManager("host", "database", "user", "password", "false");
}
public UserProfileData getUserByName(string name)
{
return getUserByName(name.Split(' ')[0], name.Split(' ')[1]);
}
public UserProfileData getUserByName(string user, string last)
{
return new UserProfileData();
}
public UserProfileData getUserByUUID(LLUUID uuid)
{
return new UserProfileData();
}
public UserAgentData getAgentByName(string name)
{
return getAgentByName(name.Split(' ')[0], name.Split(' ')[1]);
}
public UserAgentData getAgentByName(string user, string last)
{
return new UserAgentData();
}
public UserAgentData getAgentByUUID(LLUUID uuid)
{
return new UserAgentData();
}
public bool moneyTransferRequest(LLUUID from, LLUUID to, uint amount)
{
return false;
}
public bool inventoryTransferRequest(LLUUID from, LLUUID to, LLUUID item)
{
return false;
}
public string getName()
{
return "MySQL Userdata Interface";
}
public string getVersion()
{
return "0.1";
}
}
}