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.

Donate!

pls donate


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

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

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: 2,078

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


I have never thought of programming for reputation and honor. What I have in my heart must come out. That is the reason why I code.

embed.png?style=banner3

Offline

Wooted by: (2)

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

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

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 1575800891.9348 - Generated in 0.020 seconds, 10 queries executed - Memory usage: 1.29 MiB (Peak: 1.39 MiB) ]