Page 1 of 1

Handling Rooms as classes

Posted: Tue Oct 09, 2012 2:43 pm
by Filion
Can I make every room "contain" different info, like "Room Name", "Room Desc", "Room exits", "doors", "hiddendoors" as classes?

P.S. Chris any ETA on the door,oneway room glyphs? :D

Re: Handling Rooms as classes

Posted: Sat Oct 13, 2012 2:51 am
by chris
If you use my repository, probably sometime soon, though I want to overhaul the mapper so it may take some time. For the general release, I'm not sure.

For the info, use setRoomUserData(id, key, value)

You can make your own mappings in value by using known delimiters such as a pipe or a unique sequence you want to implement.

Re: Handling Rooms as classes

Posted: Sat Oct 13, 2012 9:32 am
by Vadi
You certainly can if you implement a layer between Mudlets APIs. We officially don't have plans to present our API as a class - we present low-level stuff, and then frameworks build on it as they like (Geyser, Vyzor).

Re: Handling Rooms as classes

Posted: Thu Oct 18, 2012 11:09 pm
by Daagar
chris wrote: I want to overhaul the mapper
Your ideas are interesting, and I'd like to subscribe to your newsletter. :)