Skip to content

Commit a52c04b

Browse files
committed
ci: check interfaces in sendtables
1 parent 0848029 commit a52c04b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ script:
3636
- go build ./...
3737

3838
# Make sure generated code is up-to-date
39-
- go generate
39+
- go generate && go generate ./sendtables
4040
- diff_output=$(git diff)
4141
- if [[ "$diff_output" != "" ]]; then echo "Generated code is not up-to-date" && echo "$diff_output" && exit 1; fi
4242

sendtables/entity_interface.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ type IEntity interface {
1414
ServerClass() *ServerClass
1515
// ID returns the entity's ID.
1616
ID() int
17-
// Properties is deprecated, use PropertiesI() instead.
17+
// Properties is deprecated, use PropertiesI() instead which returns a slice of interfaces.
1818
Properties() (out []Property)
1919
// PropertiesI returns all properties of the Entity.
2020
PropertiesI() (out []IProperty)
21-
// FindProperty is deprecated, use FindPropertyI() instead.
21+
// FindProperty is deprecated, use FindPropertyI() instead which returns an interface.
2222
FindProperty(name string) (prop *Property)
2323
// FindPropertyI finds a property on the Entity by name.
2424
//
2525
// Returns nil if the property wasn't found.
2626
//
2727
// Panics if more than one property with the same name was found.
28-
FindPropertyI(name string) (prop IProperty)
28+
FindPropertyI(name string) IProperty
2929
// BindProperty combines FindPropertyI() & Property.Bind() into one.
3030
// Essentially binds a property's value to a pointer.
3131
// See the docs of the two individual functions for more info.

0 commit comments

Comments
 (0)