Space Engineers
|
Client state, can be defined per-game. More...
Public Types | |
enum | MyContextKind { MyContextKind.None = 0, MyContextKind.Terminal = 1, MyContextKind.Inventory = 2, MyContextKind.Production = 3, MyContextKind.Building = 4 } |
Public Member Functions | |
override void | Serialize (BitStream stream, bool outOfOrder) |
Serializes state into/from bit stream. EndpointId should be ignored. More... | |
override void | Update () |
Public Attributes | |
readonly Dictionary< long, HashSet< long > > | KnownSectors = new Dictionary<long, HashSet<long>>() |
Public Attributes inherited from VRage.Network.MyClientStateBase | |
MyTimeSpan | ClientTimeStamp |
Protected Member Functions | |
virtual void | GetControlledEntity (out MyEntity controlledEntity, out bool hasControl) |
abstract void | WriteInternal (BitStream stream, MyEntity controlledEntity) |
abstract void | ReadInternal (BitStream stream, MyNetworkClient sender, MyEntity controlledEntity) |
void | WritePlanetSectors (BitStream stream) |
void | ReadPlanetSectors (BitStream stream) |
Properties | |
MyContextKind | Context [get, protected set] |
Client point of interest, used on server to replicate nearby entities More... | |
MyEntity | ContextEntity [get, protected set] |
override Vector3D | Position [get, protected set] |
override IMyReplicable | ControlledReplicable [get] |
Properties inherited from VRage.Network.MyClientStateBase | |
EndpointId | EndpointId [get, set] |
Client endpoint, don't serialize it in Serialize() More... | |
long | SupportId [get, protected set] |
virtual Vector3D | Position [get, protected set] |
abstract IMyReplicable | ControlledReplicable [get] |
Client state, can be defined per-game.
Definition at line 27 of file MyClientState.cs.
Enumerator | |
---|---|
None | |
Terminal | |
Inventory | |
Production | |
Building |
Definition at line 31 of file MyClientState.cs.
|
inlineprotectedvirtual |
Definition at line 76 of file MyClientState.cs.
|
protectedpure virtual |
Implemented in Multiplayer.MySpaceClientState.
|
inlineprotected |
Definition at line 228 of file MyClientState.cs.
|
inlinevirtual |
Serializes state into/from bit stream. EndpointId should be ignored.
Implements VRage.Network.MyClientStateBase.
Definition at line 59 of file MyClientState.cs.
|
inlinevirtual |
Implements VRage.Network.MyClientStateBase.
Definition at line 67 of file MyClientState.cs.
|
protectedpure virtual |
Implemented in Multiplayer.MySpaceClientState.
|
inlineprotected |
Definition at line 191 of file MyClientState.cs.
readonly Dictionary<long, HashSet<long> > Sandbox.Engine.Multiplayer.MyClientState.KnownSectors = new Dictionary<long, HashSet<long>>() |
Definition at line 29 of file MyClientState.cs.
|
getprotected set |
Client point of interest, used on server to replicate nearby entities
Definition at line 43 of file MyClientState.cs.
|
getprotected set |
Definition at line 44 of file MyClientState.cs.
|
get |
Definition at line 262 of file MyClientState.cs.
|
getprotected set |
Definition at line 51 of file MyClientState.cs.