Restructure
This commit is contained in:
parent
437cc0e0e1
commit
da91200c74
16 changed files with 43 additions and 110 deletions
43
BotSession.cs
Normal file
43
BotSession.cs
Normal file
|
@ -0,0 +1,43 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using OpenMetaverse;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Bot
|
||||
{
|
||||
public sealed class BotSession
|
||||
{
|
||||
private static BotSession _inst = null;
|
||||
private static readonly object lockHandle = new object();
|
||||
|
||||
static BotSession()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public static BotSession Instance
|
||||
{
|
||||
get
|
||||
{
|
||||
lock (lockHandle)
|
||||
{
|
||||
if (_inst == null)
|
||||
{
|
||||
_inst = new BotSession();
|
||||
}
|
||||
return _inst;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public GridClient grid { get; set; }
|
||||
public SysOut Logger { get; set; }
|
||||
public MessageHandler.MessageHandleEvent MHE;
|
||||
public MessageHandler MH;
|
||||
|
||||
public MainConfiguration ConfigurationHandle;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue