mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-14 07:02:26 +08:00
整理场景实体相关,优化同步
This commit is contained in:
@@ -7,18 +7,18 @@ import (
|
||||
|
||||
// 泛型通用转发器
|
||||
|
||||
type InvokeType interface {
|
||||
type InvokeEntryType interface {
|
||||
proto.CombatInvokeEntry | proto.AbilityInvokeEntry
|
||||
}
|
||||
|
||||
type InvokeHandler[T InvokeType] struct {
|
||||
type InvokeHandler[T InvokeEntryType] struct {
|
||||
EntryListForwardAll []*T
|
||||
EntryListForwardAllExceptCur []*T
|
||||
EntryListForwardHost []*T
|
||||
EntryListForwardServer []*T
|
||||
}
|
||||
|
||||
func NewInvokeHandler[T InvokeType]() (r *InvokeHandler[T]) {
|
||||
func NewInvokeHandler[T InvokeEntryType]() (r *InvokeHandler[T]) {
|
||||
r = new(InvokeHandler[T])
|
||||
r.InitInvokeHandler()
|
||||
return r
|
||||
|
||||
Reference in New Issue
Block a user