Spaces:
Sleeping
Sleeping
File size: 748 Bytes
6510ff3 c96649a 6510ff3 c96649a 6510ff3 c96649a 6510ff3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | use serde::{Serialize, Deserialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct VMState {
pub trust: i64,
pub flow_total: i64,
pub flow_velocity: f64,
pub productivity: i64,
pub credit_balance: i64,
pub credit_cap: i64,
pub default_risk: f64,
pub identity_locked: bool,
pub governance_weight: i64,
pub sim_tick: u64,
}
impl VMState {
pub fn new() -> Self {
Self {
trust: 100,
flow_total: 0,
flow_velocity: 0.0,
productivity: 50,
credit_balance: 0,
credit_cap: 0,
default_risk: 0.0,
identity_locked: false,
governance_weight: 0,
sim_tick: 0,
}
}
} |