/* * Copyright (c) Peter Bjorklund. All rights reserved. https://github.com/nimble-rust/nimble * Licensed under the MIT License. See LICENSE in the project root for license information. */ use nimble_host_logic::GameStateProvider; use tick_id::TickId; pub struct TestStateProvider { pub tick_id: TickId, pub payload: Vec, } impl GameStateProvider for TestStateProvider { fn state(&self, _: TickId) -> (TickId, Vec) { (self.tick_id, self.payload.clone()) } }