From c3814ee3afc6ef21c0e7683192044571f561009f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 3 Aug 2024 18:20:08 +0800 Subject: [PATCH] 1 --- metatable.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/metatable.go b/metatable.go index 1219b78..c80d3ad 100644 --- a/metatable.go +++ b/metatable.go @@ -37,6 +37,29 @@ type NameMetaTable[T any] struct { nameHash *q5.ConcurrentMap[string, *T] } +type CustomMetaTable struct { +} + +func (this *CustomMetaTable) IsNoLoad() bool { + return false +} + +func (this *CustomMetaTable) Load() { + +} + +func (this *CustomMetaTable) PreInit1() { + +} + +func (this *CustomMetaTable) ElementsInit(int) { + +} + +func (this *CustomMetaTable) PostInit1() { + +} + func (this *RawMetaTable[T]) Traverse(cb func(*T) bool) { for _, val := range this.rawList { if !cb(val) {