Skip to content

Commit f156a8b

Browse files
committed
wip: serverclass iface
1 parent 5dc8727 commit f156a8b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// DO NOT EDIT: Auto generated
2+
3+
package sendtables
4+
5+
// ServerClass is an auto-generated interface for property, intended to be used when mockability is needed.
6+
// serverClass stores meta information about Entity types (e.g. palyers, teams etc.).
7+
type ServerClass interface {
8+
// ID returns the server-class's ID.
9+
ID() int
10+
// Name returns the server-class's name.
11+
Name() string
12+
// DataTableID returns the data-table ID.
13+
DataTableID() int
14+
// DataTableName returns the data-table name.
15+
DataTableName() string
16+
// BaseClasses returns the base-classes of this server-class.
17+
BaseClasses() (res []ServerClass)
18+
// PropertyEntries returns the names of all property-entries on this server-class.
19+
PropertyEntries() []string
20+
// PropertyEntryDefinitions returns all property-entries on this server-class.
21+
PropertyEntryDefinitions() []PropertyEntry
22+
// OnEntityCreated registers a function to be called when a new entity is created from this serverClass.
23+
OnEntityCreated(handler EntityCreatedHandler)
24+
String() string
25+
}

0 commit comments

Comments
 (0)