Skip to content

Commit

Permalink
修改代码
Browse files Browse the repository at this point in the history
  • Loading branch information
pangdogs committed Aug 20, 2024
1 parent fed27a2 commit 25502b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions comp_rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,8 @@ func (c *ComponentBehavior) OneWayCliRPC(method string, args ...any) error {
func (c *ComponentBehavior) OneWayCliRPCToEntity(entityId uid.Id, method string, args ...any) error {
return rpcutil.ProxyEntity(c, c.GetEntity().GetId()).OneWayCliRPCToEntity(entityId, method, args...)
}

// OneWayCliRPCToGroups 向包含实体的所有分组发送单向RPC
func (c *ComponentBehavior) OneWayCliRPCToGroups(method string, args ...any) error {
return rpcutil.ProxyEntity(c, c.GetEntity().GetId()).OneWayCliRPCToGroups(method, args...)
}
5 changes: 5 additions & 0 deletions entity_rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,8 @@ func (e *EntityBehavior) OneWayCliRPC(method string, args ...any) error {
func (e *EntityBehavior) OneWayCliRPCToEntity(entityId uid.Id, method string, args ...any) error {
return rpcutil.ProxyEntity(e, e.GetId()).OneWayCliRPCToEntity(entityId, method, args...)
}

// OneWayCliRPCToGroups 向包含实体的所有分组发送单向RPC
func (e *EntityBehavior) OneWayCliRPCToGroups(method string, args ...any) error {
return rpcutil.ProxyEntity(e, e.GetId()).OneWayCliRPCToGroups(method, args...)
}

0 comments on commit 25502b3

Please sign in to comment.