Skip to content

Commit

Permalink
remove filter props on server entities, just save on client
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaonanln committed Jun 17, 2018
1 parent a5f9154 commit ea25b7b
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions engine/entity/Entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,23 @@ type entityTimerInfo struct {
// Entity is the basic execution unit in GoWorld server. Entities can be used to
// represent players, NPCs, monsters. Entities can migrate among spaces.
type Entity struct {
ID common.EntityID
TypeName string
I IEntity
V reflect.Value
destroyed bool
typeDesc *EntityTypeDesc
Space *Space
Position Vector3
Neighbors EntitySet
aoi aoi.AOI
yaw Yaw
rawTimers map[*timer.Timer]struct{}
timers map[EntityTimerID]*entityTimerInfo
lastTimerId EntityTimerID
client *GameClient
syncingFromClient bool
Attrs *MapAttr
// FIXME: restore filterProps from freezed data
ID common.EntityID
TypeName string
I IEntity
V reflect.Value
destroyed bool
typeDesc *EntityTypeDesc
Space *Space
Position Vector3
Neighbors EntitySet
aoi aoi.AOI
yaw Yaw
rawTimers map[*timer.Timer]struct{}
timers map[EntityTimerID]*entityTimerInfo
lastTimerId EntityTimerID
client *GameClient
syncingFromClient bool
Attrs *MapAttr
syncInfoFlag syncInfoFlag
enteringSpaceRequest struct {
SpaceID common.EntityID
Expand Down

0 comments on commit ea25b7b

Please sign in to comment.