Skip to content

Commit

Permalink
[修改]1. 修改语法配置
Browse files Browse the repository at this point in the history
  • Loading branch information
AlianBlank committed Dec 21, 2024
1 parent 4ecaef9 commit 51b1ad8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public virtual ValueTask RemoveOnlineRole(long roleId)
OwnerComponent.OnlineSet.Remove(roleId);
return ValueTask.CompletedTask;
}

public static async Task OnlineRoleForeach(Action<PlayerComponentAgent> func)
{
var serverComp = await ActorManager.GetComponentAgent<ServerComponentAgent>();
Expand Down Expand Up @@ -118,7 +118,9 @@ public virtual Task<bool> IsOnline(long roleId)
foreach (var id in OwnerComponent.OnlineSet)
{
if (id == roleId)
{
return Task.FromResult(true);
}
}

return Task.FromResult(false);
Expand Down

0 comments on commit 51b1ad8

Please sign in to comment.