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);
 }
Example #2
0
 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);
 }
Example #3
0
 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);
 }
Example #4
0
 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);
 }
Example #5
0
 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);
 }
Example #6
0
 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);
 }
Example #7
0
 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);
 }
Example #10
0
 static SyncClass()
 {
     MySyncLayer.RegisterMessage <UseMsg>(UseRequest, MyMessagePermissions.ToServer, MyTransportMessageEnum.Request);
     MySyncLayer.RegisterMessage <UseMsg>(UseSuccess, MyMessagePermissions.FromServer, MyTransportMessageEnum.Success);
 }
Example #11
0
 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);
 }
Example #13
0
 static MySyncMissiles()
 {
     MySyncLayer.RegisterMessage <MissileShootMsg>(MissileCreatedSuccess, MyMessagePermissions.FromServer);
 }
 static MyGuiBlueprintScreen()
 {
     MySyncLayer.RegisterMessage <ShareBlueprintMsg>(ShareBlueprintRequest, MyMessagePermissions.ToServer | MyMessagePermissions.FromServer);
 }
Example #15
0
 static MyScriptedGroupsSystem()
 {
     MySyncLayer.RegisterMessage <RunScriptMsg>(OnRunScriptRequest, MyMessagePermissions.ToServer, MyTransportMessageEnum.Request);
 }
Example #16
0
 static MyGuiScreenDebugSpawnMenu()
 {
     MySyncLayer.RegisterMessage <SpawnAsteroidMsg>(SpawnAsteroidSuccess, MyMessagePermissions.ToServer, MyTransportMessageEnum.Success);
     MySyncLayer.RegisterMessage <SpawnAsteroidConfirmedMsg>(SpawnAsteroidConfirmedSuccess, MyMessagePermissions.FromServer, MyTransportMessageEnum.Success);
 }