コード例 #1
0
ファイル: JoinGame.cs プロジェクト: Myvar/MyvarCraft
        public override void Flush(NetworkStream ns)
        {
            MinecraftStream read = new MinecraftStream();

            read.WriteInt(EntityID);
            read.WriteByte(Gamemode);
            read.WriteInt(Dimension);
            read.WriteByte(Difficulty);
            read.WriteByte(MaxPlayers);
            read.WriteString(LevelType);
            read.WriteSByte(ReducedDebugInfo);

            var buf = read.Flush(ID);
            ns.Write(buf, 0, buf.Length);
        }