punyinform has a mechanism for finding out what’s on the other side of a door. but how do i find out what’s on the other side of a direction?
the standard library has door_dir and compass directions which lets one unpack a direction property. something like:
new_room = real_location.(direction.door_dir);
PlayerTo(new_room);
punyinform doesn’t have this. and while this seems to work,
if (real_location provides direction_properties_array->i) {
print"you can leave to the ",(string)direction_name_array-->i;
}
i can’t figure out how to actually get the room or target on the other side of that direction. i’ve tried treating it as a standard direction property:
target = real_location.direction_properties_array->i;
but that doesn’t work since the compiler treats it like an array, not a property.
i can get around all this by simply recreating the I6 compass object but i’d like to keep things as “puny” as possible and am curious how to do this completely within punyinform.