ndouglas / mistwood

A library for roguelikes, MUDs, and similar games combining various technologies.
The Unlicense
0 stars 0 forks source link

Define trait for Message Template Provider #49

Closed ndouglas closed 7 months ago

ndouglas commented 7 months ago

User Story

As an engineer, I want to define a trait for message template providers so that we can easily expand the number of string templates available to the player.

See #26.

This will be simple; all it needs is a method that accepts an integer and returns a string. Although it might be generic over static strings (&'static str), strings with a specific lifetime (&'a str), and owned String objects. I'll have to think about that.

Tasks

Acceptance Criteria