mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Allow two or more people to load into the same multiplayer match #30
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user