These are chat archives for Ruhrpottpatriot/GW2.NET

24th
Feb 2016
Kaleb Elwert
@belak
Feb 24 2016 07:27
So, I'm pretty new to C# and Visual Studio in general, but is there a good way to just browse the docs for GW2.NET?
Kaleb Elwert
@belak
Feb 24 2016 07:37
Also, are the APIs currently implemented only publicly accessible ones? Like ones that don't need an API key?
Kaleb Elwert
@belak
Feb 24 2016 07:56
Just found MumbleLink... that's pretty cool
            foreach (var mn in GW2.V1.MapNames.ForCurrentUICulture().FindAll())
            {
                /*
                Console.Write(mn.Value.MapId);
                Console.Write(" ");
                Console.WriteLine(mn.Value.Name);
                */

                if (mn.Value.MapId == x.Identity.MapId)
                {
                    Console.WriteLine(mn.Value.Name);
                }
            }
Is there a better way of doing that?
Where x is an Avatar (I think that's what you get when you read in the MumbleLinkFile)
Since using MapNames.Find with the map id isn't working right

Or rather:

            Console.WriteLine(GW2.V2.Maps.ForCurrentUICulture().Find(x.Identity.MapId));
            Console.WriteLine(GW2.V1.MapNames.ForCurrentUICulture().Find(x.Identity.MapId));

Why does it work with V2, but throw an error with V1?