Skip to content

Commit

Permalink
protocol: Create contextualized object entry messages
Browse files Browse the repository at this point in the history
This helps the the client agent keep normal object entry (not due to a request) separate from the object entry caused by the OBJECT_GET_ZONES_OBJECTS message.
  • Loading branch information
jjkoletar committed Oct 9, 2014
1 parent 5f74db7 commit 9d7f96e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/protocol/12-stateserver.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ State-Server Behavior
**Authors**
Sam "CFSworks" Edwards (08-30-2013)
Kevin "Kestred" Stenerson (09-04-2013)
Jeremy "jjkoletar" Koletar (10-09-2014)


### Section 0: Abstract ###
Expand Down Expand Up @@ -176,6 +177,17 @@ to one object at a time.
> clients with interest in the object may not be privy to those fields.

**STATESERVER_OBJECT_ENTER_INTEREST_WITH_REQUIRED(2066)**
`args(uint32 context, uint32 do_id, uint32 parent_id, uint32 zone_id,
uint16 dclass_id, <REQUIRED_BCAST>)`
**STATESERVER_OBJECT_ENTER_INTEREST_WITH_REQUIRED_OTHER(2067)**
`args(uint32 context, uint32 do_id, uint32 parent_id, uint32 zone_id,
uint16 dclass_id, <REQUIRED_BCAST>, <OTHER_BCAST>)`
> Identical to OBJECT_ENTER_LOCATION except for the context at the beginning,
> this message exists to differentiate object entry initiated by a GET_ZONES_OBJECT-type
> query from normal object entry.

**STATESERVER_OBJECT_GET_LOCATION(2044)** `args(uint32 context)`
**STATESERVER_OBJECT_GET_LOCATION_RESP(2045):**
`args(uint32 context, uint32 do_id, uint32 parent_id, uint32 zone_id)`
Expand Down
2 changes: 2 additions & 0 deletions src/core/msgtypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ enum MessageTypes {
STATESERVER_OBJECT_ENTER_OWNER_WITH_REQUIRED_OTHER = 2063,
STATESERVER_OBJECT_GET_OWNER = 2064,
STATESERVER_OBJECT_GET_OWNER_RESP = 2065,
STATESERVER_OBJECT_ENTER_INTEREST_WITH_REQUIRED = 2066,
STATESERVER_OBJECT_ENTER_INTEREST_WITH_REQUIRED_OTHER = 2067,
// StateServer parent-method messages
STATESERVER_OBJECT_GET_ZONE_OBJECTS = 2100,
STATESERVER_OBJECT_GET_ZONES_OBJECTS = 2102,
Expand Down
2 changes: 2 additions & 0 deletions test/common/astron.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ def stop(self):
'STATESERVER_OBJECT_ENTER_OWNER_WITH_REQUIRED_OTHER': 2063,
'STATESERVER_OBJECT_GET_OWNER': 2064,
'STATESERVER_OBJECT_GET_OWNER_RESP': 2065,
'STATESERVER_OBJECT_ENTER_INTEREST_WITH_REQUIRED': 2066,
'STATESERVER_OBJECT_ENTER_INTEREST_WITH_REQUIRED_OTHER': 2067,
# State Server parent methods message-type constants
'STATESERVER_OBJECT_GET_ZONE_OBJECTS': 2100,
'STATESERVER_OBJECT_GET_ZONES_OBJECTS': 2102,
Expand Down

0 comments on commit 9d7f96e

Please sign in to comment.