Add bot source
This commit is contained in:
parent
020d43b81c
commit
437cc0e0e1
14 changed files with 1788 additions and 0 deletions
49
Source/BotSession.cs
Normal file
49
Source/BotSession.cs
Normal file
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
Copyright © 2019 Tara Piccari (Aria; Tashia Redrose)
|
||||
Licensed under the AGPL-3.0
|
||||
*/
|
||||
|
||||
|
||||
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