pub enum RelationKind {
Alliance,
RoyalMarriage,
Guarantee,
MilitaryAccess,
GivingMilitaryAccess,
Subsidies,
Dependency,
Warning,
}Expand description
A kind of relation between two countries (anvil-game 1.22.0). A relation
is one object in both countries’ lists: who did what comes from
Relation::first and Relation::second, never from whose list it is.
Variants§
Alliance
An alliance.
RoyalMarriage
A royal marriage.
Guarantee
first guarantees second.
MilitaryAccess
The country asked is first: it has access to second’s land.
GivingMilitaryAccess
The country asked is second: it gives first access.
Subsidies
first pays second.
Dependency
first is the overlord, second the subject (World::subject_type).
Warning
first warns second.
Trait Implementations§
Source§impl Clone for RelationKind
impl Clone for RelationKind
impl Copy for RelationKind
Source§impl Debug for RelationKind
impl Debug for RelationKind
impl Eq for RelationKind
Source§impl Hash for RelationKind
impl Hash for RelationKind
Source§impl PartialEq for RelationKind
impl PartialEq for RelationKind
impl StructuralPartialEq for RelationKind
Auto Trait Implementations§
impl Forget for RelationKind
impl Freeze for RelationKind
impl Move for RelationKind
impl RefUnwindSafe for RelationKind
impl Send for RelationKind
impl Sync for RelationKind
impl Unpin for RelationKind
impl UnsafeUnpin for RelationKind
impl UnwindSafe for RelationKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more