private static void OnConvertedToShipRequest(MySyncGrid sync, ref ConvertToShipMsg msg, MyNetworkClient sender) { if (!sync.Entity.IsStatic) { Debug.Assert(false, "Grid was not static!"); return; } if (Sync.IsServer) Sync.Layer.SendMessageToAllAndSelf(ref msg, MyTransportMessageEnum.Success); }
private static void OnConvertedToShipSuccess(MySyncGrid sync, ref ConvertToShipMsg msg, MyNetworkClient sender) { if (!sync.Entity.IsStatic) { Debug.Assert(false, "Grid was not static!"); return; } sync.Entity.ConvertToDynamic(); }
public void RequestConversionToShip() { ConvertToShipMsg msg = new ConvertToShipMsg(); msg.GridEntityId = Entity.EntityId; Sync.Layer.SendMessageToServer(ref msg); }