Allow two or more people to load into the same multiplayer match #30

This commit is contained in:
NG (Graham) committed 2025-07-20 18:31:08 -04:00
1 parent cd45c22d0b
commit 37cbc8d85f
24 files changed
+902 -149

No files matched your search

+8
View File
@@ -23,6 +23,8 @@ pub enum Relation {
Aux,
#[sea_orm(has_many = "super::campaign::Entity")]
Campaigns,
#[sea_orm(has_many = "super::multiplayer_game_player::Entity")]
Player,
}
impl Related<super::permissions::Entity> for Entity {
@@ -49,4 +51,10 @@ impl Related<super::campaign::Entity> for Entity {
}
}
impl Related<super::multiplayer_game_player::Entity> for Entity {
fn to() -> RelationDef {
Relation::Player.def()
}
}
impl ActiveModelBehavior for ActiveModel {}