This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace Lib | |
| { | |
| public interface IMinecraftStream |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace Lib | |
| { | |
| public class MinecraftStream : Stream, IMinecraftStream |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Server | |
| { | |
| public TcpListener listener; | |
| Task listenerTask; | |
| private bool online; | |
| private Dictionary<TcpClient, Task> clienttasks; | |
| public Server(int port) | |
| { | |
| online = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Net.Sockets; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace Lib | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using Microsoft.VisualStudio.TestTools.UnitTesting; | |
| using Lib; | |
| using System.Threading; | |
| namespace Tests | |
| { | |
| [TestClass] | |
| public class ConnectionTests | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace HelloWorld | |
| { | |
| class Program | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var channel = ctx.Guild.GetChannel((ulong)v.channelid); | |
| //Get Resulsts, and Post in First Message. | |
| foreach (var v2 in v.Ids) | |
| { | |
| var message = await channel.GetMessageAsync((ulong)v2.PurpleId); | |
| foreach (var v3 in avatars) | |
| { | |
| var reactors = await message.GetReactionsAsync(v3.Value); | |
| if (votes.TryGetValue(v3.Key, out int Value)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using BaseBot.JSON; | |
| using DSharpPlus; | |
| using DSharpPlus.CommandsNext; | |
| using DSharpPlus.CommandsNext.Attributes; | |
| using DSharpPlus.Entities; | |
| using DSharpPlus.Interactivity; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static FiggleFont[] fonts = new FiggleFont[] | |
| { | |
| FiggleFonts.Acrobatic, FiggleFonts.Alligator, FiggleFonts.Alligator2,FiggleFonts.Alligator3,FiggleFonts.Alpha,FiggleFonts.Alphabet,FiggleFonts.Amc3Line,FiggleFonts.Amc3Liv1,FiggleFonts.AmcAaa01,FiggleFonts.AmcNeko,FiggleFonts.AmcRazor,FiggleFonts.AmcRazor2,FiggleFonts.AmcSlash,FiggleFonts.AmcSlder,FiggleFonts.AmcThin,FiggleFonts.AmcTubes,FiggleFonts.AmcUn1,FiggleFonts.Arrows,FiggleFonts.AsciiNewroman,FiggleFonts.Avatar,FiggleFonts.B1FF,FiggleFonts.Banner,FiggleFonts.Banner3,FiggleFonts.Banner3D,FiggleFonts.Banner4,FiggleFonts.BarbWire,FiggleFonts.Basic,FiggleFonts.Bear,FiggleFonts.Bell,FiggleFonts.Benjamin,FiggleFonts.Big,FiggleFonts.BigChief,FiggleFonts.BigFig,FiggleFonts.Binary,FiggleFonts.Block,FiggleFonts.Blocks,FiggleFonts.Bolger,FiggleFonts.Braced,FiggleFonts.Bright,FiggleFonts.Broadway,FiggleFonts.BroadwayKB,FiggleFonts.Bubble,FiggleFonts.Bulbhead,FiggleFonts.Caligraphy,FiggleFonts.Caligraphy2,FiggleFonts.Cards,FiggleFonts.CatWalk,FiggleFonts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using ProceduralToolkit; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using UnityEngine; | |
| public class Rail : MonoBehaviour { | |
| public RailNode[] Nodes; | |
| public int resolution = 10; | |
| private MeshFilter Mesh; |
OlderNewer