Skip to content

Commit

Permalink
fixed some typos and bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
Trisfald committed Jul 6, 2020
1 parent 3707a68 commit 2d324eb
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.8.0] - 2020-07-06
### Added
- New methods `on_character_added` and `on_character_transmuted` in `CharacterRules`.
- `Client` and `Server` are now `Send`. For this to happen some types requires `Send` as well.
- Client and Server implements a new trait, `BattleController`.
- Multiplayer example 'King of the hill'.
- Added accessors to flat event structures.
- Removed metric `ROUNDS_STARTED`. Added counters for rounds and turns in `Rounds`. Added also an `EndTurn` event.
- Introduced `BattleController` trait.

### Fixed
- Ambiguous metric ids for `CREATURES_CREATED` and `OBJECTS_CREATED`.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "weasel"
version = "0.7.0"
version = "0.8.0"
authors = ["Trisfald <[email protected]>"]
edition = "2018"
description = "A customizable battle system for turn-based games."
Expand Down
2 changes: 1 addition & 1 deletion src/battle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ pub trait BattleRules: Sized + Send {
/// It is used to verify each event. You can use `()` to disable versioning.
pub type Version<R> = <R as BattleRules>::Version;

/// A trait for types having control of a battle.
/// A trait for types that have control over a battle.
pub trait BattleController<R: BattleRules> {
/// Returns a reference to the battle.
fn battle(&self) -> &Battle<R>;
Expand Down
2 changes: 1 addition & 1 deletion src/character.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ pub trait CharacterRules<R: BattleRules> {
) {
}

/// Invoked when a character is transmuted during the the battle.
/// Invoked when a character is transmuted during the battle.
///
/// The provided implementation does nothing.
fn on_character_transmuted(
Expand Down
2 changes: 1 addition & 1 deletion src/round.rs
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ where

/// Event to trigger the end of the current turn.
///
/// A turn is a logical separator between rounds, and it can contain any
/// A turn is a logical separator between rounds and it can contain any
/// number of these.\
/// Managing turns is optional and not required in order to start or end rounds.
///
Expand Down
2 changes: 1 addition & 1 deletion src/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ impl<R: BattleRules> FlatClientEvent<R> {
&self.version
}

/// Returns the player to which this event belongs.
/// Returns the player to whom this event belongs.
pub fn player(&self) -> Option<PlayerId> {
self.player
}
Expand Down

0 comments on commit 2d324eb

Please sign in to comment.