Skip to main content

MethodSync

A class in Root.Township, Alta.Networking.

A simple network sync: registers a handler for one entity message type on an entity's message handler. Calling SendToChunks or SendToPlayer (from the base Sync) runs the same method to write, and receivers run it to read.

Constructors​

MemberWhat it is
MethodSync(INetworkEntity entity, EntityMessageType messageType, SerializeMethod method)Creates a MethodSync from entity, type and handler.
MethodSync(INetworkEntity entity, EntityMessageType type, StreamMethod handler)Creates a MethodSync from entity, type and handler.

Used in​

Members of other types that take, return or hold a MethodSync:

ActionItem.syncOwner, AdditionalStaticContent.sync, Recycler.syncFull, Recycler.syncTemperatureValue, Smelter.syncIcons, ChisellingDeck.updateBlock, TimberBlockSpawner.syncPosition, CaveLayerManager.sync, CaveTeleporter.syncLayer, CaveTeleporterManager.syncFull, CaveLayerStreamer.syncLayer, Chunk.syncIndex, StaticCaveChunk.syncSetup, StewManager.syncStewFromEntity, ConfirmationCraftingPart.syncCompletedEffect, ConfirmationCraftingPart.syncPopout, ConfirmationCraftingPart.syncSetup, GenericAssemblyStation.syncDockPosition, GenericCraftingComponent.syncEffects, GenericCraftingResult.syncBake, GenericCraftingStation.syncFull, GenericCraftingStation.syncProject, Enchantable.syncMessage, DayTimeManager.syncFixedDaytime, ForestGenerator.syncSeed, HeatSourceBase.sync, FixedImpactor.syncCharged, Phantom.syncCrackEffect, Phantom.syncFade, Phantom.syncMaterializedStatus, PlayerLikeSpectralGhost.syncBody, Schmeechee.embed, SeedSpray.destroyed, SeedSpray.finished, SeedSpray.shoot, SeedSpray.syncParent, ConsumableLock.requestEffect, Lock.syncBreakKeyGrip, Lock.syncBreakKeyJoint, Lock.syncLocked, LockableHinge.syncLocked, LockableHinge.syncSetLock, PickupDock.SyncQuantity, LiquidContainer.syncLiquidAmount, LiquidContainer.syncLiquidContent, InfoBoard.sync, MapBoard.syncBoard, NonPhysicalLever.syncRelease, NonPhysicalLever.syncSetup, NetworkAnimator.syncStart, ModifiableStaticManager.sync, NetworkEntity.moveEntity, NetworkGravity.syncGravity, StaticPlatformSupport.sync, Book.locationChange, Book.sync, PageInstance.sync, PositionRestrictor.syncItems, DownedState.syncActivateActions, DownedState.syncDeactivateActions and 141 more.