Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

Advertisement

Hello, visitor! These forums are run off of the revenue generated from these ads. If you'd like to support us, please whitelist us or consider donating:

#1 2017-07-14 16:26:13

capasha
Member
Joined: 2015-02-21
Posts: 3,765

HaxEE - [Bot] World Parser

So I just made a World Parser like HaxEE using. Maybe someone can make it better but this is how I made it.
Source Code: https://pastebin.com/mVZRUk53

Offline

Wooted by:

#2 2017-07-14 16:46:05, last edited by Processor (2017-07-14 16:47:51)

Processor
Member
Joined: 2015-02-15
Posts: 1,884

Re: HaxEE - [Bot] World Parser

I made a sweet one liner 2 years ago!

int[][] roomdata = m.GetString(0).Split('\n').Select(l => l.Split(',').Select(int.Parse).ToArray()).ToArray();

https://github.com/Yonom/BotBits.Old/bl … er.cs#L122


embed.png?style=banner3

Offline

Wooted by: (2)

#3 2017-07-14 17:15:05

capasha
Member
Joined: 2015-02-21
Posts: 3,765

Re: HaxEE - [Bot] World Parser

Processor wrote:

I made a sweet one liner 2 years ago!

int[][] roomdata = m.GetString(0).Split('\n').Select(l => l.Split(',').Select(int.Parse).ToArray()).ToArray();

https://github.com/Yonom/BotBits.Old/bl … er.cs#L122

LINQ, much better.

Offline

capasha1500048905667928

Board footer

Powered by FluxBB

[ Started around 1563950248.4441 - Generated in 0.019 seconds, 11 queries executed - Memory usage: 1.28 MiB (Peak: 1.39 MiB) ]