Skip to main content

StaticPlatformSupport

A class in Root.Township, Alta.Networking.

Network behaviour meant to sync a placed object's position through a PositionSerializer with a movement context. Not used anywhere, and its serializer is never created, so it would probably throw if used.

Constructors​

MemberWhat it is
StaticPlatformSupport()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private PositionSerializer<NetworkRigidbody> positionSerializerThe position serializer. Never assigned.
private MethodSync syncThe method sync.

Properties​

MemberWhat it is
IMovementContext MovementContext { get; set; }The movement context of the position serializer.

Methods​

MemberWhat it is
override void Initialize()Creates the method sync for placed position.
1 private and internal method
MemberWhat it is
private void Sync(IPlayer player, Stream stream)Sends or receives the position; rejects data read on the server outside local test.