Hello, loves! I did a little something yesterday afternoon. What’s next as we move toward our new content class? I am pleased. Should I be? One of the issues we had in our quest to get the CombinedContent object to handle all possibly content needs was the announce method on Dungeon, which, obviously, requires access to the Dungeon instance. We don’t have a convenient way to pass that around. But we do have an instance of PubSub going to each publication’s callback. So I implemented a new event ‘announce’, fielded it in DungeonView, and forwarded it via a new “private” method, _announce, in Dungeon, where the announcements currently reside. Then I dug out all the calls to dungeon.announce and changed them to .publish('announce'.... So that’s done. Well, nearly done. I have some tests that are checking announcements, and I’ve marked those to skip. I’ll update them at my leisure, and report here if they’re interesting, but they likely are not. They’ll really just need to subscribe to…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.