public ContextCallbackManager(Steam.SteamListener steamListener, Wrapped.Server server, Ice.ObjectAdapter adapter, Action <Task> asyncCompleter) : base(asyncCompleter) { SteamListener = steamListener; Server = server; IcePrx = Murmur.ServerContextCallbackPrxHelper.uncheckedCast(adapter.addWithUUID(this)); }
public PluginManager(Fancyauth fancyauth, Steam.SteamListener steamListener, Wrapped.Server wserver, ContextCallbackManager ccmgr, CommandManager cmdmgr) : base(fancyauth.StashCallback) { Fancyauth = fancyauth; SteamListener = steamListener; WServer = wserver; Server = new ServerWrapper(steamListener, wserver); ContextCallbackManager = ccmgr; CommandManager = cmdmgr; var catalog = new AggregateCatalog(); catalog.Catalogs.Add(new AssemblyCatalog(Assembly.GetExecutingAssembly())); if (Directory.Exists("plugins")) { catalog.Catalogs.Add(new DirectoryCatalog("plugins")); } var container = new CompositionContainer(catalog); container.ComposeParts(this); foreach (var plugin in Plugins) { plugin.Init(); } }
public Task HandleCommand(Steam.SteamListener steamListener, Wrapped.Server server, Murmur.User caller, IEnumerable <string> cmd) { CommandFunc func; if (_Commands.TryGetValue(cmd.FirstOrDefault(), out func)) { return(func(new Plugins.UserWrapper(steamListener, server, caller), cmd.Skip(1))); } else { return(server.SendMessage(caller.session, "Unknown command")); } }
public UserWrapper(Steam.SteamListener steamListener, Wrapped.Server server, Murmur.User user) : base(steamListener, server, user.session) { User = user; }
public ServerWrapper(Steam.SteamListener steamListener, Wrapped.Server server) { SteamListener = steamListener; Server = server; }
public PermissionsWrapper(int channelId, Wrapped.Server server) { ChannelId = channelId; Server = server; }
public ChannelShim(Wrapped.Server server, int id) { Server = server; ChannelId = id; }
public ChannelWrapper(Wrapped.Server server, Murmur.Channel channel) : base(server, channel.id) { Channel = channel; LinkedChannels = new HashSet <IChannelShim>(channel.links.Select(x => new ChannelShim(server, x))); }
public UserShim(Steam.SteamListener steamListener, Wrapped.Server server, int session) { SteamListener = steamListener; Server = server; SessionId = session; }