Skip to content

Commit

Permalink
local raid update
Browse files Browse the repository at this point in the history
  • Loading branch information
moonheart committed Feb 3, 2025
1 parent b729a65 commit e25e54f
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,8 @@ public void SendLocalRaidOpenRoom(LocalRaidRoomConditionsType conditionType, lon
ConditionsType = conditionType,
QuestId = questId,
RequiredBattlePower = requiredBattlePower,
Password = password
Password = password,
IsAutoStart = true
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,26 @@ namespace MementoMori.Ortega.Network.MagicOnion.Interface
{
public interface IMagicOnionLocalRaidReceiver
{
void OnGetRoomList(OnGetRoomListResponse response);
void OnGetRoomList(OnGetRoomListResponse response);

void OnDisbandRoom();
void OnDisbandRoom();

void OnInvite(OnInviteResponse response);
void OnInvite(OnInviteResponse response);

void OnLeaveRoom();
void OnInviteRefuse(OnInviteRefuseResponse response);

void OnLockRoom();
void OnLeaveRoom();

void OnJoinRoom(OnJoinRoomResponse response);
void OnLockRoom();

void OnRefuse();
void OnJoinRoom(OnJoinRoomResponse response);

void OnStartBattle();
void OnRefuse();

void OnUpdateRoom(OnUpdateRoomResponse response);
void OnStartBattle();

void OnUpdatePartyCount(OnUpdatePartyCountResponse response);
void OnUpdateRoom(OnUpdateRoomResponse response);

void OnUpdatePartyCount(OnUpdatePartyCountResponse response);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@ namespace MementoMori.Ortega.Share.MagicOnionShare.Request
{
[MessagePackObject(false)]
public class OpenRoomRequest
{
[Key(0)]
public LocalRaidRoomConditionsType ConditionsType { get; set; }
{
[Key(0)]
public LocalRaidRoomConditionsType ConditionsType { get; set; }

[Key(1)]
public int Password { get; set; }
[Key(1)]
public int Password { get; set; }

[Key(2)]
public long QuestId { get; set; }
[Key(2)]
public long QuestId { get; set; }

[Key(3)]
public long RequiredBattlePower { get; set; }
[Key(3)]
public long RequiredBattlePower { get; set; }

[Key(4)]
public bool IsAutoStart { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using MessagePack;

namespace MementoMori.Ortega.Share.MagicOnionShare.Response
{
[MessagePackObject(false)]
public class OnInviteRefuseResponse
{
}
}
5 changes: 5 additions & 0 deletions MementoMori/MagicOnion/LocalRaidJoinRoomReceiver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ public virtual void OnInvite(OnInviteResponse response)
_log("OnInvite");
}

public void OnInviteRefuse(OnInviteRefuseResponse response)
{
_log("OnInviteRefuse");
}

public virtual void OnLeaveRoom()
{
_log("OnLeaveRoom");
Expand Down

0 comments on commit e25e54f

Please sign in to comment.