this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Removing old code from PF2E system implementation as it used old paradigm

-30
-30
src/pf2e/mod.rs
··· 1 - use crate::traits::{DiceWireSystem, DiceWireActor, Serializable}; 2 - use uuid::Uuid; 3 - use serde::Serialize; 4 - 5 - pub struct DiceWirePF2E { 6 - 7 - } 8 - 9 - impl DiceWireSystem for DiceWirePF2E { 10 - fn name(&self) -> &str { 11 - "Pathfinder 2E" 12 - } 13 - 14 - fn get_actor(&self, uuid: Uuid) -> Box<dyn DiceWireActor> { 15 - Box::new(DiceWirePF2EActor{}) 16 - } 17 - } 18 - 19 - #[derive(Serialize)] 20 - pub struct DiceWirePF2EActor { 21 - 22 - } 23 - 24 - impl DiceWireActor for DiceWirePF2EActor {} 25 - 26 - impl Serializable for DiceWirePF2EActor { 27 - fn serialize(&self) -> Vec<u8> { 28 - rmp_serde::to_vec(self).unwrap() 29 - } 30 - }