1
0
Fork 1
mirror of https://github.com/MingweiSamuel/Riven.git synced 2025-03-17 12:13:16 -07:00
Riven/src/consts/team.rs

16 lines
476 B
Rust
Raw Normal View History

2019-10-25 22:19:00 -07:00
use serde_repr::{ Serialize_repr, Deserialize_repr };
use num_enum::{ IntoPrimitive, TryFromPrimitive };
2019-10-25 22:19:00 -07:00
/// League of Legends team.
2019-10-25 19:54:29 -07:00
#[derive(Debug, Copy, Clone)]
#[derive(Eq, PartialEq, Hash, Ord, PartialOrd)]
2019-10-25 22:19:00 -07:00
#[derive(Serialize_repr, Deserialize_repr)]
#[derive(IntoPrimitive, TryFromPrimitive)]
2019-10-25 22:19:00 -07:00
#[repr(u8)]
2019-10-25 12:30:03 -07:00
pub enum Team {
2019-10-25 19:54:29 -07:00
/// Blue team (bottom left on Summoner's Rift).
BLUE = 100,
2019-10-25 19:54:29 -07:00
/// Red team (top right on Summoner's Rift).
RED = 200,
2019-10-25 19:54:29 -07:00
}