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.

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

capasha
Member
Joined: 2015-02-21
Posts: 4,066

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,246

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.

Offline

Wooted by: (2)

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

capasha
Member
Joined: 2015-02-21
Posts: 4,066

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 1713983395.2387 - Generated in 0.049 seconds, 13 queries executed - Memory usage: 1.4 MiB (Peak: 1.5 MiB) ]