static MyEntityStatComponent() { MySyncLayer.RegisterMessage <EntityStatChangedMsg>(OnStatChangedRequest, MyMessagePermissions.ToServer, MyTransportMessageEnum.Request); MySyncLayer.RegisterMessage <EntityStatChangedMsg>(OnStatChangedMessage, MyMessagePermissions.FromServer, MyTransportMessageEnum.Success); MySyncLayer.RegisterMessage <StatActionRequestMsg>(OnStatActionRequest, MyMessagePermissions.ToServer, MyTransportMessageEnum.Request); MySyncLayer.RegisterMessage <StatActionMsg>(OnStatActionMessage, MyMessagePermissions.FromServer, MyTransportMessageEnum.Success); }
static MySyncBatteryBlock() { MySyncLayer.RegisterMessage <ProducerEnabledMsg>(OnProducerEnableChange, MyMessagePermissions.ToServer | MyMessagePermissions.FromServer); MySyncLayer.RegisterMessage <SemiautoEnabledMsg>(OnSemiautoEnableChange, MyMessagePermissions.ToServer | MyMessagePermissions.FromServer); MySyncLayer.RegisterMessage <CapacityMsg>(CapacityChange, MyMessagePermissions.ToServer | MyMessagePermissions.FromServer); MySyncLayer.RegisterMessage <IsFullMsg>(IsFullChange, MyMessagePermissions.ToServer | MyMessagePermissions.FromServer); }
static MySyncJumpDriveSystem() { MySyncLayer.RegisterMessage <RequestJumpMsg>(OnJumpRequested, MyMessagePermissions.ToServer); MySyncLayer.RegisterMessage <JumpSuccessMsg>(OnJumpSuccess, MyMessagePermissions.FromServer); MySyncLayer.RegisterMessage <JumpFailureMsg>(OnJumpFailure, MyMessagePermissions.FromServer); MySyncLayer.RegisterMessage <PerformJumpMsg>(OnPerformJump, MyMessagePermissions.FromServer); }
static MySyncLandingGear() { MySyncLayer.RegisterMessage <AttachMsg>(AttachRequest, MyMessagePermissions.ToServer, MyTransportMessageEnum.Request); MySyncLayer.RegisterMessage <AttachMsg>(AttachSuccess, MyMessagePermissions.FromServer, MyTransportMessageEnum.Success); MySyncLayer.RegisterMessage <AttachMsg>(AttachFailure, MyMessagePermissions.FromServer, MyTransportMessageEnum.Failure); MySyncLayer.RegisterMessage <BrakeForceMsg>(OnBrakeForceChange, MyMessagePermissions.ToServer | MyMessagePermissions.FromServer); MySyncLayer.RegisterMessage <AutoLockMsg>(OnAutoLockChange, MyMessagePermissions.ToServer | MyMessagePermissions.FromServer); }
static MySyncWarhead() { MySyncLayer.RegisterMessage <SetTimerMsg>(SetTimerRequest, MyMessagePermissions.ToServer, MyTransportMessageEnum.Request); MySyncLayer.RegisterMessage <SetTimerMsg>(SetTimerSuccess, MyMessagePermissions.FromServer, MyTransportMessageEnum.Success); MySyncLayer.RegisterMessage <CountdownMsg>(CountdownRequest, MyMessagePermissions.ToServer, MyTransportMessageEnum.Request); MySyncLayer.RegisterMessage <CountdownMsg>(CountdownSuccess, MyMessagePermissions.FromServer, MyTransportMessageEnum.Success); MySyncLayer.RegisterMessage <ArmMsg>(ArmSuccess, MyMessagePermissions.Any); MySyncLayer.RegisterMessage <DetonateMsg>(DetonateRequest, MyMessagePermissions.Any); }
static SyncClass() { MySyncLayer.RegisterMessage <ModeSwitchMsg>(ModeSwitchRequestCallback, MyMessagePermissions.ToServer, MyTransportMessageEnum.Request); MySyncLayer.RegisterMessage <ModeSwitchMsg>(ModeSwitchSuccessCallback, MyMessagePermissions.FromServer, MyTransportMessageEnum.Success); MySyncLayer.RegisterMessage <RepeatEnabledMsg>(RepeatEnabledRequestCallback, MyMessagePermissions.ToServer, MyTransportMessageEnum.Request); MySyncLayer.RegisterMessage <RepeatEnabledMsg>(RepeatEnabledSuccessCallback, MyMessagePermissions.FromServer, MyTransportMessageEnum.Success); MySyncLayer.RegisterMessage <DisassembleAllMsg>(DisassembleAllRequestCallback, MyMessagePermissions.ToServer, MyTransportMessageEnum.Request); MySyncLayer.RegisterMessage <SlaveModeSwitchMsg>(SlaveSwitchRequestCallback, MyMessagePermissions.ToServer, MyTransportMessageEnum.Request); MySyncLayer.RegisterMessage <SlaveModeSwitchMsg>(SlaveSwitchSuccessCallback, MyMessagePermissions.FromServer, MyTransportMessageEnum.Success); }
static MyAiTargetManager() { MySyncLayer.RegisterMessage <ReserveEntityMsg>(OnReserveEntityRequest, MyMessagePermissions.ToServer, MyTransportMessageEnum.Request); MySyncLayer.RegisterMessage <ReserveEntityMsg>(OnReserveEntitySuccess, MyMessagePermissions.FromServer, MyTransportMessageEnum.Success); MySyncLayer.RegisterMessage <ReserveEntityMsg>(OnReserveEntityFailure, MyMessagePermissions.FromServer, MyTransportMessageEnum.Failure); MySyncLayer.RegisterMessage <ReserveEnvironmentItemMsg>(OnReserveEnvironmentItemRequest, MyMessagePermissions.ToServer, MyTransportMessageEnum.Request); MySyncLayer.RegisterMessage <ReserveEnvironmentItemMsg>(OnReserveEnvironmentItemSuccess, MyMessagePermissions.FromServer, MyTransportMessageEnum.Success); MySyncLayer.RegisterMessage <ReserveEnvironmentItemMsg>(OnReserveEnvironmentItemFailure, MyMessagePermissions.FromServer, MyTransportMessageEnum.Failure); MySyncLayer.RegisterMessage <ReserveVoxelPositionMsg>(OnReserveVoxelPositionRequest, MyMessagePermissions.ToServer, MyTransportMessageEnum.Request); MySyncLayer.RegisterMessage <ReserveVoxelPositionMsg>(OnReserveVoxelPositionSuccess, MyMessagePermissions.FromServer, MyTransportMessageEnum.Success); MySyncLayer.RegisterMessage <ReserveVoxelPositionMsg>(OnReserveVoxelPositionFailure, MyMessagePermissions.FromServer, MyTransportMessageEnum.Failure); }
static MySpaceRespawnComponent() { MySyncLayer.RegisterMessage <SyncCooldownRequestMessage>(OnSyncCooldownRequest, MyMessagePermissions.ToServer); MySyncLayer.RegisterMessage <SyncCooldownResponseMessage>(OnSyncCooldownResponse, MyMessagePermissions.FromServer); }
static MySyncPrefabManager() { MySyncLayer.RegisterMessage <SpawnPrefabMsg>(OnPrefabSpawned, MyMessagePermissions.FromServer); }
static SyncClass() { MySyncLayer.RegisterMessage <UseMsg>(UseRequest, MyMessagePermissions.ToServer, MyTransportMessageEnum.Request); MySyncLayer.RegisterMessage <UseMsg>(UseSuccess, MyMessagePermissions.FromServer, MyTransportMessageEnum.Success); }
static MyGuiBlueprintScreen() { MySyncLayer.RegisterMessage <ShareBlueprintMsg>(ShareBlueprintRequest, MyMessagePermissions.Any); }
static MyMultiplayerSyncObject() { MySyncLayer.RegisterMessage <CustomModMsg>(ModMessageRecieved, MyMessagePermissions.Any, MyTransportMessageEnum.Success); MySyncLayer.RegisterMessage <CustomModMsgUnreliable>(ModMessageRecievedUnreliable, MyMessagePermissions.Any, MyTransportMessageEnum.Success); }
static MySyncMissiles() { MySyncLayer.RegisterMessage <MissileShootMsg>(MissileCreatedSuccess, MyMessagePermissions.FromServer); }
static MyGuiBlueprintScreen() { MySyncLayer.RegisterMessage <ShareBlueprintMsg>(ShareBlueprintRequest, MyMessagePermissions.ToServer | MyMessagePermissions.FromServer); }
static MyScriptedGroupsSystem() { MySyncLayer.RegisterMessage <RunScriptMsg>(OnRunScriptRequest, MyMessagePermissions.ToServer, MyTransportMessageEnum.Request); }
static MyGuiScreenDebugSpawnMenu() { MySyncLayer.RegisterMessage <SpawnAsteroidMsg>(SpawnAsteroidSuccess, MyMessagePermissions.ToServer, MyTransportMessageEnum.Success); MySyncLayer.RegisterMessage <SpawnAsteroidConfirmedMsg>(SpawnAsteroidConfirmedSuccess, MyMessagePermissions.FromServer, MyTransportMessageEnum.Success); }